From: Richard Sandiford Date: Mon, 15 Oct 2012 19:58:03 +0000 (+0000) Subject: thread_local-cse.C: Move dg-do line. X-Git-Tag: upstream/12.2.0~73552 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95bf35bd2566026f8337185dff6633358b3bbb7f;p=platform%2Fupstream%2Fgcc.git thread_local-cse.C: Move dg-do line. gcc/testsuite/ * g++.dg/tls/thread_local-cse.C: Move dg-do line. * g++.dg/tls/thread_local-wrap4.C: Require fpic. From-SVN: r192473 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1b23a7b..781b02a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-10-15 Richard Sandiford + + * g++.dg/tls/thread_local-cse.C: Move dg-do line. + * g++.dg/tls/thread_local-wrap4.C: Require fpic. + 2012-10-15 Alexandre Oliva Paolo Carlini diff --git a/gcc/testsuite/g++.dg/tls/thread_local-cse.C b/gcc/testsuite/g++.dg/tls/thread_local-cse.C index 47c6aed..29553d2 100644 --- a/gcc/testsuite/g++.dg/tls/thread_local-cse.C +++ b/gcc/testsuite/g++.dg/tls/thread_local-cse.C @@ -1,11 +1,11 @@ // Test for CSE of the wrapper function: we should only call it once // for the two references to ir. +// { dg-do run } // { dg-options "-std=c++11 -O -fno-inline -save-temps" } // { dg-require-effective-target tls_runtime } // { dg-require-alias } // { dg-final { scan-assembler-times "call *_ZTW2ir" 1 { xfail *-*-* } } } // { dg-final cleanup-saved-temps } -// { dg-do run } // XFAILed until the back end supports a way to mark a function as cseable // though not pure. diff --git a/gcc/testsuite/g++.dg/tls/thread_local-wrap4.C b/gcc/testsuite/g++.dg/tls/thread_local-wrap4.C index 1301148..7c8481c 100644 --- a/gcc/testsuite/g++.dg/tls/thread_local-wrap4.C +++ b/gcc/testsuite/g++.dg/tls/thread_local-wrap4.C @@ -2,6 +2,7 @@ // copy per shared object. // { dg-require-effective-target tls } +// { dg-require-effective-target fpic } // { dg-options "-std=c++11 -fPIC" } // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } }