Tested on x86-64-darwin24, 25 .. pushed to trunk, thanks
Iain

--- 8< ---

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]>
---
 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 7d7d0e695ac..330d64d29fa 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 3baecb9599c..cbce3c2da05 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;
-- 
2.50.1 (Apple Git-155)

Reply via email to