https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100177
Bug ID: 100177
Summary: Rust demangler tests fail on big-endian hosts
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: demangler
Assignee: unassigned at gcc dot gnu.org
Reporter: nickc at gcc dot gnu.org
Target Milestone: ---
The rust portion of the libiberty testsuite fails when run on a big-endian
host:
./test-demangle < ./libiberty/testsuite/rust-demangle-expected
FAIL at line 222, options --format=rust:
in: _RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc76_E
out: <const_generic::Char<'
exp: <const_generic::Char<'v'>>
FAIL at line 285, options --format=auto:
in: _RMCs4fqI2P2rA04_13const_genericINtB0_4CharKc76_E
out: <const_generic::Char<'
exp: <const_generic::Char<'v'>>
./test-demangle: 68 tests, 2 failures
The same failures do not happen when the tests are run on a little endian host.
This problem appears to have existed for at least a few months and was recently
reported on the binutils bugzilla system:
https://sourceware.org/bugzilla/show_bug.cgi?id=27751