diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2015-12-14 02:05:16 +0000 |
---|---|---|
committer | Thomas Preud'homme <thopre01@gcc.gnu.org> | 2015-12-14 02:05:16 +0000 |
commit | 65a00f0e3b35b3f12bfa6ed2dd0e51f1d4df9da7 (patch) | |
tree | 344e892e4efb0e68b9f1e0e294f096ce6bbabd0c | |
parent | 8edccfc629c7a50d95b9a9baba66229d9911f33d (diff) | |
download | gcc-65a00f0e3b35b3f12bfa6ed2dd0e51f1d4df9da7.zip gcc-65a00f0e3b35b3f12bfa6ed2dd0e51f1d4df9da7.tar.gz gcc-65a00f0e3b35b3f12bfa6ed2dd0e51f1d4df9da7.tar.bz2 |
re PR testsuite/68629 (FAIL: c-c++-common/attr-simd-3.c)
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/attr-simd-3.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 7 |
3 files changed, 14 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3ac0d15..1995074 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/c-c++-common/attr-simd-3.c b/gcc/testsuite/c-c++-common/attr-simd-3.c index d61ba82..1970c67 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 8d28b23..4a79699 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 { } { |