Require effective target global_constructor for two testcases
authorTom de Vries <tom@codesourcery.com>
Fri, 24 Mar 2017 06:29:06 +0000 (06:29 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Fri, 24 Mar 2017 06:29:06 +0000 (06:29 +0000)
2017-03-24  Tom de Vries  <tom@codesourcery.com>

PR testsuite/80092
* gcc.dg/no_profile_instrument_function-attr-1.c: Add
dg-require-effective-target global_constructor.
* gcc.dg/tls/emutls-2.c: Same.

From-SVN: r246436

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
gcc/testsuite/gcc.dg/tls/emutls-2.c

index 1a57128c3450a36f888be860d1d69b976b9c37dc..84ba7aff45e49c602e4b594b1dbbc6820be246c4 100644 (file)
@@ -1,3 +1,10 @@
+2017-03-24  Tom de Vries  <tom@codesourcery.com>
+
+       PR testsuite/80092
+       * gcc.dg/no_profile_instrument_function-attr-1.c: Add
+       dg-require-effective-target global_constructor.
+       * gcc.dg/tls/emutls-2.c: Same.
+
 2017-03-24  Tom de Vries  <tom@codesourcery.com>
 
        PR testsuite/80092
index f7afb346d7f7507785c030d3902fe80349d6ed6e..0f04fb1eedc3577b1ba4ed80a7678c4ebcea1f43 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target global_constructor } */
 /* { dg-options "-O2 -fprofile-generate -fprofile-update=single -fdump-tree-optimized" } */
 
 __attribute__ ((no_profile_instrument_function))
index 1e26d5fe116e4c7f3b76be19e1844f088dd93496..3b94dc7e45cf8518462c0ac46ce939856b5d0011 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target tls } */
+/* { dg-require-effective-target global_constructor } */
 /* { dg-options "-O2" } */
 
 /* With emulated TLS, the constructor generated during IPA