aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2017-03-24 06:29:06 +0000
committerTom de Vries <vries@gcc.gnu.org>2017-03-24 06:29:06 +0000
commitc2e389bf384ca7572c393b4692b6fba4441d7907 (patch)
treec55ceb3faa2922d084e38f4303e7b4637397f17a
parenta72821b44ff2d1da21729954657ade558edc8ba2 (diff)
downloadgcc-c2e389bf384ca7572c393b4692b6fba4441d7907.zip
gcc-c2e389bf384ca7572c393b4692b6fba4441d7907.tar.gz
gcc-c2e389bf384ca7572c393b4692b6fba4441d7907.tar.bz2
Require effective target global_constructor for two testcases
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
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/tls/emutls-2.c1
3 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1a57128..84ba7af 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,6 +1,13 @@
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
* c-c++-common/Wimplicit-fallthrough-34.c: Add
dg-require-effective-target indirect_jumps.
diff --git a/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c b/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
index f7afb34..0f04fb1 100644
--- a/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
+++ b/gcc/testsuite/gcc.dg/no_profile_instrument_function-attr-1.c
@@ -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))
diff --git a/gcc/testsuite/gcc.dg/tls/emutls-2.c b/gcc/testsuite/gcc.dg/tls/emutls-2.c
index 1e26d5f..3b94dc7 100644
--- a/gcc/testsuite/gcc.dg/tls/emutls-2.c
+++ b/gcc/testsuite/gcc.dg/tls/emutls-2.c
@@ -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