On 03/06/2013 06:33 AM, Rainer Orth wrote:
Why not skip the whole test with dg-skip-if, since the scan is the whole point of the testcase AFAICT? Also, please add a comment explaining why the test is skipped, perhaps referencing the PR.
Here's what I'm checking in:
commit cd378936f38da434298b7adb5e03dc53d1a35ab8 Author: Jason Merrill <ja...@redhat.com> Date: Wed Mar 6 10:16:34 2013 -0500 PR debug/53363 * g++.dg/debug/dwarf2/thunk1.C: Skip on darwin. diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C b/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C index 1eb1295..c47ade6 100644 --- a/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C +++ b/gcc/testsuite/g++.dg/debug/dwarf2/thunk1.C @@ -3,6 +3,9 @@ // { dg-options "-g -fpic -fno-dwarf2-cfi-asm" } // { dg-final { scan-assembler-times "LFB3" 5 } } +// Darwin doesn't use the thunk for PIC. +// { dg-skip-if { target *-*-darwin* } } + template <class T> void f(T t) { } int main()