aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2015-12-18 21:14:58 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2015-12-18 21:14:58 +0000
commite8f47b663f39d4bc959ef181b0cb8ed935aa4c6d (patch)
tree5ebe08558fb7cb5742b610d80549e59c45989bb7 /gcc
parent15113b03f161992db3d6c609f37e8b42ba775ea3 (diff)
downloadgcc-e8f47b663f39d4bc959ef181b0cb8ed935aa4c6d.zip
gcc-e8f47b663f39d4bc959ef181b0cb8ed935aa4c6d.tar.gz
gcc-e8f47b663f39d4bc959ef181b0cb8ed935aa4c6d.tar.bz2
target-supports.exp (check_effective_target_cilkplus): Not nvptx.
* lib/target-supports.exp (check_effective_target_cilkplus): Not nvptx. * c-c++-common/attr-simd-3.c: Require cilkplus. * gcc.dg/graphite/id-28.c: Likewise. From-SVN: r231838
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/c-c++-common/attr-simd-3.c3
-rw-r--r--gcc/testsuite/gcc.dg/graphite/id-28.c2
-rw-r--r--gcc/testsuite/lib/target-supports.exp6
4 files changed, 14 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index b2d9d3b..d8202de 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-12-18 Nathan Sidwell <nathan@acm.org>
+
+ * lib/target-supports.exp (check_effective_target_cilkplus): Not nvptx.
+ * c-c++-common/attr-simd-3.c: Require cilkplus.
+ * gcc.dg/graphite/id-28.c: Likewise.
+
2015-12-18 Bernd Schmidt <bschmidt@redhat.com>
* gcc.dg/debug/dwarf2/prod-options.c: New test.
diff --git a/gcc/testsuite/c-c++-common/attr-simd-3.c b/gcc/testsuite/c-c++-common/attr-simd-3.c
index ff88515..56552bd 100644
--- a/gcc/testsuite/c-c++-common/attr-simd-3.c
+++ b/gcc/testsuite/c-c++-common/attr-simd-3.c
@@ -1,6 +1,5 @@
-/* { dg-do compile } */
+/* { dg-do compile { target cilkplus } } */
/* { dg-options "-fcilkplus" } */
/* { dg-prune-output "undeclared here \\(not in a function\\)|\[^\n\r\]* was not declared in this scope" } */
-/* { dg-require-effective-target pthread } */
void f () __attribute__((__simd__, __vector__)); /* { dg-error "in the same function marked as a Cilk Plus" "PR68158" } */
diff --git a/gcc/testsuite/gcc.dg/graphite/id-28.c b/gcc/testsuite/gcc.dg/graphite/id-28.c
index 3c4bd23..dd5fb9f 100644
--- a/gcc/testsuite/gcc.dg/graphite/id-28.c
+++ b/gcc/testsuite/gcc.dg/graphite/id-28.c
@@ -1,5 +1,5 @@
+/* { dg-do compile { target cilkplus } } */
/* { dg-options "-fcilkplus -floop-nest-optimize -O3" } */
-/* { dg-require-effective-target pthread } */
#if HAVE_IO
#include <stdio.h>
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index d97d186..10d6444 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1441,6 +1441,12 @@ proc check_effective_target_cilkplus { } {
if { [istarget avr-*-*] } {
return 0;
}
+
+ # No pthreads on NVPTX
+ if { [istarget nvptx-*-*] } {
+ return 0;
+ }
+
return 1
}