GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
testsuite

testsuite: xfail gcc.dg/torture/pr127377.c on big-endian

Test case known to fail at runtime on big-endian systems is now explicitly marked.

A test case, gcc.dg/torture/pr127377.c, which compiles successfully but aborts at runtime on big-endian targets, has been marked as ‘expected to fail’ (xfail). This runtime failure, indicated by a return value of 0x70, is suspected to be related to register layout boundaries. Explicitly marking the test prevents noisy regressions in the test suite output for big-endian architectures.

In Details

The test case gcc.dg/torture/pr127377.c exhibits a runtime failure (abort, returning 0x70) specifically on big-endian targets, despite successful compilation across all optimization levels. This behavior is correlated with register tracking and layout issues observed in PR127142. To maintain test suite stability and avoid spurious failures, this patch adds a dg-xfail-run-if directive to the test file, targeting big-endian configurations.

For Context
xfail
In software testing, 'xfail' (expected to fail) marks a test case that is known to fail due to a bug or limitation. The test suite will report it as 'xfail' rather than a 'fail', indicating that the failure is understood.
big-endian
A byte order where the most significant byte is stored at the lowest memory address. This is in contrast to little-endian, where the least significant byte is at the lowest address.
torture test
A type of test suite that aims to stress compiler optimizations and code generation by using complex or unusual code constructs.
runtime failure
An error that occurs when a program is executing, as opposed to a compile-time error.
Filed Under: testsuitebugfixbig-endian