TUESDAY, OCTOBER 13, 2026
testsuite/c++/Darwin
testsuite,c++,Darwin: Allow for linker-visible source loc labels [PR126723]
testsuite,c++,Darwin: Updates C++ module tests for Darwin to accommodate linker-visible source location labels.
This change updates C++ module test cases on Darwin to correctly match assembly output. It accounts for a recent change that makes source location labels visible to the linker, ensuring that the test suite’s scan-asm checks remain valid.
In Details
This commit adjusts the scan-asm matches in the C++ testsuite for Darwin. It accommodates a change that makes source location symbols linker-visible. This is necessary because the testsuite's verification relies on parsing assembly output, and the visibility of these symbols affects how they appear in the assembled code.
For Context
- linker-visible symbols
- Symbols (like function or variable names) that are visible to the linker and can be referenced across different object files or libraries.
- source loc labels
- Internal labels or symbols generated by the compiler that correspond to specific source code locations, often used for debugging or diagnostics.
- Darwin
- The operating system developed by Apple, which serves as the basis for macOS, iOS, and other Apple platforms. GCC's Darwin support includes specific code generation and linking behaviors.
- scan-asm
- A mechanism within the GCC testsuite that parses assembly output from compiled code to verify compiler behavior and correctness.