Commit 95bf35bd by Richard Sandiford Committed by Richard Sandiford

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
parent dd016b8f
2012-10-15 Richard Sandiford <rdsandiford@googlemail.com>
* 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 <aoliva@redhat.com> 2012-10-15 Alexandre Oliva <aoliva@redhat.com>
Paolo Carlini <paolo.carlini@oracle.com> Paolo Carlini <paolo.carlini@oracle.com>
......
// Test for CSE of the wrapper function: we should only call it once // Test for CSE of the wrapper function: we should only call it once
// for the two references to ir. // for the two references to ir.
// { dg-do run }
// { dg-options "-std=c++11 -O -fno-inline -save-temps" } // { dg-options "-std=c++11 -O -fno-inline -save-temps" }
// { dg-require-effective-target tls_runtime } // { dg-require-effective-target tls_runtime }
// { dg-require-alias } // { dg-require-alias }
// { dg-final { scan-assembler-times "call *_ZTW2ir" 1 { xfail *-*-* } } } // { dg-final { scan-assembler-times "call *_ZTW2ir" 1 { xfail *-*-* } } }
// { dg-final cleanup-saved-temps } // { dg-final cleanup-saved-temps }
// { dg-do run }
// XFAILed until the back end supports a way to mark a function as cseable // XFAILed until the back end supports a way to mark a function as cseable
// though not pure. // though not pure.
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// copy per shared object. // copy per shared object.
// { dg-require-effective-target tls } // { dg-require-effective-target tls }
// { dg-require-effective-target fpic }
// { dg-options "-std=c++11 -fPIC" } // { dg-options "-std=c++11 -fPIC" }
// { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } } // { dg-final { scan-assembler-not "_ZTW1i@PLT" { target i?86-*-* x86_64-*-* } } }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment