Index: gcc/testsuite/g++.dg/tls/thread_local-cse.C
===================================================================
--- gcc/testsuite/g++.dg/tls/thread_local-cse.C	2012-10-10 20:53:22.000000000 +0100
+++ gcc/testsuite/g++.dg/tls/thread_local-cse.C	2012-10-15 20:28:38.147650178 +0100
@@ -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.
Index: gcc/testsuite/g++.dg/tls/thread_local-wrap4.C
===================================================================
--- gcc/testsuite/g++.dg/tls/thread_local-wrap4.C	2012-10-14 14:02:01.000000000 +0100
+++ gcc/testsuite/g++.dg/tls/thread_local-wrap4.C	2012-10-15 20:28:38.147650178 +0100
@@ -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-*-* } } }
 
