Commit 1a15a8ca by Georg-Johann Lay Committed by Georg-Johann Lay

target-supports.exp (check_effective_target_cilkplus): New proc.

	* lib/target-supports.exp (check_effective_target_cilkplus): New proc.
	* gcc.dg/cilk-plus/cilk-plus.exp: only run if
	check_effective_target_cilkplus.
	* g++.dg/cilk-plus/cilk-plus.exp: Same.

From-SVN: r201048
parent e0fc81aa
2013-07-19 Georg-Johann Lay <avr@gjlay.de>
* lib/target-supports.exp (check_effective_target_cilkplus): New proc.
* gcc.dg/cilk-plus/cilk-plus.exp: only run if
check_effective_target_cilkplus.
* g++.dg/cilk-plus/cilk-plus.exp: Same.
2013-07-18 Pat Haugen <pthaugen@us.ibm.com> 2013-07-18 Pat Haugen <pthaugen@us.ibm.com>
* gcc.target/powerpc/pr57744.c: Fix typo. * gcc.target/powerpc/pr57744.c: Fix typo.
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
load_lib g++-dg.exp load_lib g++-dg.exp
if { ![check_effective_target_cilkplus] } {
return;
}
dg-init dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " " dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " "
dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O0 -fcilkplus" " " dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O0 -fcilkplus" " "
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
load_lib gcc-dg.exp load_lib gcc-dg.exp
if { ![check_effective_target_cilkplus] } {
return;
}
dg-init dg-init
dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " " dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -fcilkplus" " "
dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O0 -fcilkplus" " " dg-runtest [lsort [glob -nocomplain $srcdir/c-c++-common/cilk-plus/AN/*.c]] " -O0 -fcilkplus" " "
......
...@@ -1132,6 +1132,24 @@ proc check_effective_target_static_libgfortran { } { ...@@ -1132,6 +1132,24 @@ proc check_effective_target_static_libgfortran { } {
} "-static"] } "-static"]
} }
# Return 1 if cilk-plus is supported by the target, 0 otherwise.
proc check_effective_target_cilkplus { } {
# Skip cilk-plus tests on int16 and size16 targets for now.
# The cilk-plus tests are not generic enough to cover these
# cases and would throw hundreds of FAILs.
if { [check_effective_target_int16]
|| ![check_effective_target_size32plus] } {
return 0;
}
# Skip AVR, its RAM is too small and too many tests would fail.
if { [istarget avr-*-*] } {
return 0;
}
return 1
}
proc check_linker_plugin_available { } { proc check_linker_plugin_available { } {
return [check_no_compiler_messages_nocache linker_plugin executable { return [check_no_compiler_messages_nocache linker_plugin executable {
int main() { return 0; } int main() { return 0; }
......
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