[gcc r16-9440] testsuite, darwin: XFAIL tests with -g3 on systems using dyly-ld.
Iain D Sandoe via Gcc-cvs <[email protected]> Wed, 29 Jul 2026 21:43:40 +0000 (GMT)
| Newsgroups | gmane.comp.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://gcc.gnu.org/g:8facb98b23ab21368b753edc1210c36e4a2230d4 commit r16-9440-g8facb98b23ab21368b753edc1210c36e4a2230d4 Author: Iain Sandoe <[email protected]> Date: Sun May 5 14:16:36 2024 +0100 testsuite, darwin: XFAIL tests with -g3 on systems using dyly-ld. Currently, Darwin's static linker does not handle the output of -g3. We have no way to remedy this, so xfail the tests for current OS versions. gcc/testsuite/ChangeLog: * gcc.dg/debug/dwarf2/dwarf2-macro.c: XFAIL for Darwin23+. * gcc.dg/debug/dwarf2/dwarf2-macro2.c: Likewise. Signed-off-by: Iain Sandoe <[email protected]> (cherry picked from commit fe881353f13d8b7212faf1f91e6eb022f9edd233) Diff: --- gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro.c | 2 +- gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro.c index fd61296b2f1d..7d7d0e695ac7 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro.c @@ -1,7 +1,7 @@ /* Test to make sure the mcaro info includes a start file command for the main source */ /* { dg-do compile } */ /* { dg-options "-g3 -gdwarf -dA -fverbose-asm" } */ -/* { dg-final { scan-assembler "Start new file" } } */ +/* { dg-final { scan-assembler "Start new file" { xfail *-*-darwin23* } } } */ #define ADD(x) (M + x) diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro2.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro2.c index 3dfa2908ef36..3baecb9599ce 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro2.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf2-macro2.c @@ -1,7 +1,7 @@ /* Test to make sure the macro info includes the predefined macros with line number 0. */ /* { dg-do compile } */ /* { dg-options "-g3 -gdwarf -dA -fverbose-asm" } */ -/* { dg-final { scan-assembler "At line number 0" } } */ +/* { dg-final { scan-assembler "At line number 0" { xfail *-*-darwin23* } } } */ #define FOO 1 int i;