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  <r...@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

Reply via email to