re PR testsuite/68629 (FAIL: c-c++-common/attr-simd-3.c)
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 14 Dec 2015 02:05:16 +0000 (02:05 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Mon, 14 Dec 2015 02:05:16 +0000 (02:05 +0000)
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.

From-SVN: r231605

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

index 3ac0d15..1995074 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 d61ba82..1970c67 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 8d28b23..4a79699 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 { } {