aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2024-08-26 18:06:52 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2024-08-27 07:53:50 +0200
commit103127cd9398d140222c9da44715d447641bf791 (patch)
treea5707aa8e0b90fcca85c1d683183e848640138d0 /gcc
parenta1062b0c07bb729cf6a1fff34929d22e5d5b633d (diff)
downloadgcc-103127cd9398d140222c9da44715d447641bf791.zip
gcc-103127cd9398d140222c9da44715d447641bf791.tar.gz
gcc-103127cd9398d140222c9da44715d447641bf791.tar.bz2
Fix another inline7.c test failure on sparc targets
This new test was reported to be still failing on sparc targets. Here the number of DW_AT_ranges dropped to zero. The test should pass on this architecture with -Os, -O2 and -O3. I tried to improve also different known problematic targets, where only one subroutine had DW_AT_ranges: Those are armhf (arm with hard float), powerpc and powerpc64. The best option is to use -Os: So far the only one, where all two inline instances in this test had two DW_AT_ranges. gcc/testsuite/ChangeLog: PR other/116462 * gcc.dg/debug/dwarf2/inline7.c: Switch to -Os optimization.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/debug/dwarf2/inline7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/inline7.c b/gcc/testsuite/gcc.dg/debug/dwarf2/inline7.c
index 083df5b..8b2fa12 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/inline7.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/inline7.c
@@ -1,6 +1,6 @@
/* Verify that at least one of both inline instances have
a DW_AT_ranges but no extra DW_TAG_lexical_block. */
-/* { dg-options "-O -gdwarf -dA" } */
+/* { dg-options "-Os -gdwarf -dA" } */
/* { dg-do compile } */
/* { dg-final { scan-assembler-times "\\(DIE \\(\[^\n\]*\\) DW_TAG_inlined_subroutine" 2 } } */
/* { dg-final { scan-assembler " DW_AT_ranges" } } */