This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] Fix g++.dg/debug/dwarf2/thunk1.C (PR debug/53363)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 07 Feb 2013 11:03:10 +0100
- Subject: [testsuite] Fix g++.dg/debug/dwarf2/thunk1.C (PR debug/53363)
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.
# 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) { }
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University