GCC Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc/testsuite/x86

Fix missing user label prefix in Darwin X86 tests

Corrects test failures on Darwin by accounting for user label prefixes.

Two test cases for Darwin’s X86 architecture (pr126293-1b.c and pr126293-1c.c) were failing due to a missing user label prefix. This commit updates the tests to correctly account for USER_LABEL_PREFIX, ensuring they pass on Darwin systems where this prefix is used for symbol visibility.

In Details

These test files (gcc.target/i386/pr126293-1b.c and pr126293-1c.c) were failing on Darwin because they did not correctly handle the USER_LABEL_PREFIX. This prefix is used by the Darwin linker to control symbol visibility, and tests that rely on specific symbol naming conventions need to account for it. The fix involves adjusting the test code to properly incorporate USER_LABEL_PREFIX when defining or referencing labels, thus ensuring correct assembly and linking behavior on Darwin.

For Context
testsuite
A collection of automated tests used to verify the correctness of the compiler. It includes various test cases covering different language features, optimizations, and target architectures.
X86
A family of instruction set architectures (ISAs) for computer processors, commonly used in personal computers and servers. GCC supports targeting various X86 processors.
Darwin
The open-source Unix-based operating system foundation of macOS, iOS, and other Apple operating systems. GCC includes specific support for Darwin targets.
USER_LABEL_PREFIX
A compiler or linker macro that defines the prefix used for user-defined labels (symbols) in assembly code, often influenced by the target operating system or ABI.
Filed Under: testsuitex86darwin