Testsuite: Skip x86 function-body scan tests on Darwin.
The testsuite now skips certain x86 function-body scan tests on Darwin because 64-bit Darwin doesn't support non-PIC code.
The testsuite now skips x86 function-body scan tests that expect ELF defaults on Darwin. 64-bit Darwin does not support non-PIC code, leading to code differences that make comparisons unreliable. This change avoids failures related to assembler syntax, ABI differences, and platform constraints.
In Details
Function-body scan tests compare the generated assembly code against expected output. The differences in assembly syntax, ABI, and platform constraints (like the requirement for PIC code on Darwin) can make these tests difficult to maintain and portable. This commit addresses the specific issue of non-PIC code being unsupported on 64-bit Darwin, which causes significant divergence from the expected ELF defaults used in some tests. The tests skipped are in gcc.target/i386/.
For Context
Compiler test suites often include checks to ensure that the generated assembly code matches expectations. These "function-body scan tests" compare the actual assembly output with a predefined template. However, variations in operating systems and architectures can lead to differences in the generated code. This commit addresses such a case on Darwin (macOS), where the 64-bit architecture requires Position Independent Code (PIC), causing discrepancies with tests designed for non-PIC environments.