Patchwork [testsuite] Fix g++.dg/debug/dwarf2/thunk1.C (PR debug/53363)

login
register
mail settings
Submitter Rainer Orth
Date Feb. 7, 2013, 10:03 a.m.
Message ID <yddvca4zbj5.fsf@lokon.CeBiTec.Uni-Bielefeld.DE>
Download mbox | patch
Permalink /patch/218875/
State New
Headers show

Comments

Rainer Orth - Feb. 7, 2013, 10:03 a.m.
As described in the PR, g++.dg/debug/dwarf2/thunk1.C was failing on
Solaris/x86 (both 32 and 64-bit), as well as 64-bit Linux/i686.  The
following patch implements Jason's suggestions in the PR.

Tested with the appropriate runtest invocations on i386-pc-solaris2.10,
i686-unknown-linux-gnu, and x86_64-unknown-linux-gnu.

Approved by Jason in the PR, installed on mainline.

	Rainer


2013-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR debug/53363
	* g++.dg/debug/dwarf2/thunk1.C: Restrict to 32-bit x86.
	Add -fno-dwarf2-cfi-asm to dg-options.
	Adapt match count.

Patch

# HG changeset patch
# Parent cd810edcd772d804921ebe4728ce4fb558bd8cb1
Fix g++.dg/debug/dwarf2/thunk1.C (PR debug/53363)

diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C b/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C
--- a/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C
+++ b/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C
@@ -1,7 +1,7 @@ 
 // Test that we don't add the x86 PC thunk to .debug_ranges
-// { dg-do compile { target i?86-*-* } }
-// { dg-options "-g -fpic" }
-// { dg-final { scan-assembler-times "LFB3" 1 } }
+// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
+// { dg-options "-g -fpic -fno-dwarf2-cfi-asm" }
+// { dg-final { scan-assembler-times "LFB3" 5 } }
 
 template <class T> void f(T t) { }