Hi!

As usually, -g -dA output differs between targets that can't merge
debug strings and those that do.  Instead of writing regexps to match both,
this patch does what most other testcases do.  Additionally, it fixes the
testcase also for -gdwarf-4 defaulting compilers.

Regtested on x86_64-linux and i686-linux, committed as obvious.

2011-06-06  Jakub Jelinek  <ja...@redhat.com>

        PR testsuite/49288
        * g++.dg/debug/dwarf2/cdtor-1.C: Add -fno-merge-debug-strings
        to dg-options, match also DW_AT_linkage_name.

--- gcc/testsuite/g++.dg/debug/dwarf2/cdtor-1.C.jj      2011-06-01 
10:19:57.000000000 +0200
+++ gcc/testsuite/g++.dg/debug/dwarf2/cdtor-1.C 2011-06-06 14:51:26.000000000 
+0200
@@ -1,5 +1,5 @@
 // origin PR debug/49047
-// { dg-options "-g -dA" }
+// { dg-options "-g -dA -fno-merge-debug-strings" }
 // { dg-do compile }
 
 struct K
@@ -11,7 +11,7 @@ struct K
 int
 main()
 {
-    K k;
+  K k;
 }
 
-// { dg-final {scan-assembler-times "\[^\n\r\]*DW_AT_MIPS_linkage_name:" 2 } }
+// { dg-final {scan-assembler-times " DW_AT_\[MIPS_\]*linkage_name" 2 } }

        Jakub

Reply via email to