From: thopre01 Date: Mon, 14 Dec 2015 02:05:16 +0000 (+0000) Subject: 2015-12-14 Thomas Preud'homme X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63f4c0d1867986f14af707616cc3fa83fd72b011;p=thirdparty%2Fgcc.git 2015-12-14 Thomas Preud'homme PR testsuite/68629 * lib/target-supports.exp (check_effective_target_cilkplus): Also check that compiling with -fcilkplus does not give an error. * c-c++-common/attr-simd-3.c: Require cilkplus effective target. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231605 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3ac0d158073a..199507482797 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-12-14 Thomas Preud'homme + + PR testsuite/68629 + * lib/target-supports.exp (check_effective_target_cilkplus): Also + check that compiling with -fcilkplus does not give an error. + * c-c++-common/attr-simd-3.c: Require cilkplus effective target. + 2015-12-13 David Edelsohn * gcc.dg/graphite/pr42729.c: XFAIL AIX. diff --git a/gcc/testsuite/c-c++-common/attr-simd-3.c b/gcc/testsuite/c-c++-common/attr-simd-3.c index d61ba82de3c7..1970c67174b9 100644 --- a/gcc/testsuite/c-c++-common/attr-simd-3.c +++ b/gcc/testsuite/c-c++-common/attr-simd-3.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target "cilkplus" } */ /* { dg-options "-fcilkplus" } */ /* { dg-prune-output "undeclared here \\(not in a function\\)|\[^\n\r\]* was not declared in this scope" } */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 8d28b235c27e..4a79699ab0cb 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1432,7 +1432,12 @@ proc check_effective_target_cilkplus { } { if { [istarget avr-*-*] } { return 0; } - return 1 + return [ check_no_compiler_messages_nocache fcilkplus_available executable { + #ifdef __cplusplus + extern "C" + #endif + int dummy; + } "-fcilkplus" ] } proc check_linker_plugin_available { } {