]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-12-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2015 02:05:16 +0000 (02:05 +0000)
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Dec 2015 02:05:16 +0000 (02:05 +0000)
    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

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attr-simd-3.c
gcc/testsuite/lib/target-supports.exp

index 3ac0d158073a70ea38e914faa71475664c2c568d..199507482797f1a69748c275ad4ef6facbb21b69 100644 (file)
@@ -1,3 +1,10 @@
+2015-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       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  <dje.gcc@gmail.com>
 
        * gcc.dg/graphite/pr42729.c: XFAIL AIX.
index d61ba82de3c73f94d25338f44cc88ebc8f660f01..1970c67174b9391294eb514b4666e60230bf1a67 100644 (file)
@@ -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" } */
 
index 8d28b235c27ee30c3248f93cb6df02da3d956128..4a79699ab0cb0883392b3f7456eb30060e928883 100644 (file)
@@ -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 { } {