From c2e389bf384ca7572c393b4692b6fba4441d7907 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Fri, 24 Mar 2017 06:29:06 +0000 Subject: [PATCH] Require effective target global_constructor for two testcases 2017-03-24 Tom de Vries 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 | 7 +++++++ .../gcc.dg/no_profile_instrument_function-attr-1.c | 1 + gcc/testsuite/gcc.dg/tls/emutls-2.c | 1 + 3 files changed, 9 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a57128c345..84ba7aff45e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-03-24 Tom de Vries + + 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 PR testsuite/80092 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 f7afb346d7f..0f04fb1eedc 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 1e26d5fe116..3b94dc7e45c 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 -- 2.30.2