[gcc r16-9446] testsuite, Darwin: Extend skipping of -g3 for more OS versions.

Iain D Sandoe via Gcc-cvs <[email protected]> Wed, 29 Jul 2026 21:46:13 +0000 (GMT)
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:6ba6bc80ac8d62f7fef74d9a8af7b84387450aa7

commit r16-9446-g6ba6bc80ac8d62f7fef74d9a8af7b84387450aa7
Author: Iain Sandoe <[email protected]>
Date:   Fri Jun 19 19:40:37 2026 +0100

    testsuite, Darwin: Extend skipping of -g3 for more OS versions.
    
    The dyld-based linker does not work with GCC's output for -g3 and that
    is now in force from darwin23 onwards.
    
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/debug/dwarf2/dwarf2-macro.c: Skip for Darwin23+.
            * gcc.dg/debug/dwarf2/dwarf2-macro2.c: Likewise.
    
    Signed-off-by: Iain Sandoe <[email protected]>
    (cherry picked from commit da0aa94c68ad225f3f92cece2f3b8a2b7f1aee1f)

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 7d7d0e695ac7..330d64d29faa 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"  { xfail *-*-darwin23* } } } */
+/* { dg-final { scan-assembler "Start new file"  { xfail *-*-darwin2[3-5]* } } } */
 
 #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 3baecb9599ce..cbce3c2da05a 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" { xfail *-*-darwin23* } } } */
+/* { dg-final { scan-assembler "At line number 0" { xfail *-*-darwin2[3-5]* } } } */
 
 #define FOO 1
 int i;