Commit e8f47b66 by Nathan Sidwell Committed by Nathan Sidwell

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
parent 15113b03
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> 2015-12-18 Bernd Schmidt <bschmidt@redhat.com>
* gcc.dg/debug/dwarf2/prod-options.c: New test. * gcc.dg/debug/dwarf2/prod-options.c: New test.
......
/* { dg-do compile } */ /* { dg-do compile { target cilkplus } } */
/* { dg-options "-fcilkplus" } */ /* { dg-options "-fcilkplus" } */
/* { dg-prune-output "undeclared here \\(not in a function\\)|\[^\n\r\]* was not declared in this scope" } */ /* { 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" } */ void f () __attribute__((__simd__, __vector__)); /* { dg-error "in the same function marked as a Cilk Plus" "PR68158" } */
/* { dg-do compile { target cilkplus } } */
/* { dg-options "-fcilkplus -floop-nest-optimize -O3" } */ /* { dg-options "-fcilkplus -floop-nest-optimize -O3" } */
/* { dg-require-effective-target pthread } */
#if HAVE_IO #if HAVE_IO
#include <stdio.h> #include <stdio.h>
......
...@@ -1441,6 +1441,12 @@ proc check_effective_target_cilkplus { } { ...@@ -1441,6 +1441,12 @@ proc check_effective_target_cilkplus { } {
if { [istarget avr-*-*] } { if { [istarget avr-*-*] } {
return 0; return 0;
} }
# No pthreads on NVPTX
if { [istarget nvptx-*-*] } {
return 0;
}
return 1 return 1
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment