]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [vxworks] add -gno-strict-dwarf to pr111409.c
authorAlexandre Oliva <oliva@adacore.com>
Wed, 25 Mar 2026 09:45:35 +0000 (06:45 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 25 Mar 2026 09:45:35 +0000 (06:45 -0300)
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.

gcc/testsuite/gcc.dg/pr111409.c
gcc/testsuite/gcc.dg/pr115066.c

index 7d5190506624c213ac648595b3eef74fc1666a61..d685879e64b96737b84ef1015b428233fd38d4cc 100644 (file)
@@ -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} } } */
 
index aadc4900467a369fbd897f556df13c8736911826..d79233f2e79ff0193cdf2d6348d3d5edd0eefd12 100644 (file)
@@ -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} } } */