https://gcc.gnu.org/g:ae51a8a4150fb68c5979bb85d53529f268a4b6bc
commit ae51a8a4150fb68c5979bb85d53529f268a4b6bc Author: Alexandre Oliva <[email protected]> Date: Thu May 8 02:18:28 2025 -0300 [testsuite] [vxworks] add -gno-strict-dwarf to pr111409.c The expected macro debug information is not issued with -gstrict-dwarf, and ports such as vxworks default to that. Allow non-strict dwarf for the test. pr115066.c needs the same problem adjustment. for gcc/testsuite/ChangeLog * gcc.dg/pr111409.c: Allow non-strict dwarf. * gcc.dg/pr115066.c: Likewise. Diff: --- gcc/testsuite/gcc.dg/pr111409.c | 2 +- gcc/testsuite/gcc.dg/pr115066.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/pr111409.c b/gcc/testsuite/gcc.dg/pr111409.c index 7d5190506624..d685879e64b9 100644 --- a/gcc/testsuite/gcc.dg/pr111409.c +++ b/gcc/testsuite/gcc.dg/pr111409.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "split DWARF unsupported" { hppa*-*-hpux* powerpc*-ibm-aix* *-*-darwin* } } */ -/* { dg-options "-gsplit-dwarf -g3 -dA" } */ +/* { dg-options "-gsplit-dwarf -g3 -dA -gno-strict-dwarf" } */ /* { dg-final { scan-assembler-times {\.section\t"?\.debug_macro} 1 } } */ /* { dg-final { scan-assembler-not {\.byte\s+0x7\s*#\s*Import} } } */ diff --git a/gcc/testsuite/gcc.dg/pr115066.c b/gcc/testsuite/gcc.dg/pr115066.c index aadc4900467a..d79233f2e79f 100644 --- a/gcc/testsuite/gcc.dg/pr115066.c +++ b/gcc/testsuite/gcc.dg/pr115066.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "split DWARF unsupported" { hppa*-*-hpux* powerpc*-ibm-aix* *-*-darwin* } } */ -/* { dg-options "-gsplit-dwarf -g3 -dA -gdwarf-4" } */ +/* { dg-options "-gsplit-dwarf -g3 -dA -gdwarf-4 -gno-strict-dwarf" } */ /* { dg-final { scan-assembler-times {\.section\t"?\.debug_macro} 1 } } */ /* { dg-final { scan-assembler-not {\.byte\t0x5\t[^\n\r]* Define macro strp} } } */ /* { dg-final { scan-assembler {\.byte\t0xb\t[^\n\r]* Define macro strx|\.byte\t0x1\t[^\n\r]* Define macro} } } */
