[testsuite] Fix cdtor-1.C testcase (PR testsuite/49288)

Submitted by Jakub Jelinek on June 6, 2011, 5:53 p.m.

Details

Message ID 20110606175357.GV17079@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek June 6, 2011, 5:53 p.m.
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  <jakub@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.


	Jakub

Patch hide | download patch | download mbox

--- 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 } }