]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add -gno-strict-dwarf option to dwarf2 inline[26].c tests
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 17 Mar 2025 15:33:01 +0000 (11:33 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 17 Mar 2025 15:33:01 +0000 (11:33 -0400)
Some targets default to strict dwarf.

2025-03-17  John David Anglin  <danglin@gcc.gnu.org>

gcc/testsuite/ChangeLog:

PR testsuite/119220
* gcc.dg/debug/dwarf2/inline2.c: Add -gno-strict-dwarf option.
* gcc.dg/debug/dwarf2/inline6.c: Likewise.

gcc/testsuite/gcc.dg/debug/dwarf2/inline2.c
gcc/testsuite/gcc.dg/debug/dwarf2/inline6.c

index 6893ddfa2ebe3d6f30ba771db481387f650b6b1b..f5d7e4efd16126ad22de8eccfa3679b40894e169 100644 (file)
@@ -16,7 +16,7 @@
 
 /* Explicitly use dwarf-2 because dwarf-5 might use DW_FORM_implicit_const
    which is hard to scan for. */
-/* { dg-options "-O -g3 -gdwarf-2 -dA -fgnu89-inline" } */
+/* { dg-options "-O -g3 -gdwarf-2 -gno-strict-dwarf -dA -fgnu89-inline" } */
 /* { dg-do compile } */
 
 /* There are 6 inlined subroutines:
index d7c86f89895c228def2d3ac54bcb2d967deb80a7..f271ebbcc803c68dc63a0d635ca93641b364cbae 100644 (file)
@@ -16,7 +16,7 @@
 
 /* Explicitly use dwarf-5 which uses DW_FORM_implicit_const.  */
 /* { dg-do compile } */
-/* { dg-options "-O -g3 -gdwarf-5 -dA -fgnu89-inline -gno-as-loc-support" } */
+/* { dg-options "-O -g3 -gdwarf-5 -gno-strict-dwarf -dA -fgnu89-inline -gno-as-loc-support" } */
 
 /* There are 6 inlined subroutines:
    - One for each subroutine inlined into main, that's 3.