This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
cilkplus fails without pthreads for me
- From: Mike Stump <mikestump at comcast dot net>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 1 Jan 2016 10:13:50 -0800
- Subject: cilkplus fails without pthreads for me
- Authentication-results: sourceware.org; auth=none
cilkplus fails without pthreads for me:
xg++: error: unrecognized command line option '-pthread'
compiler exited with status 1
output is:
xg++: error: unrecognized command line option '-pthread'
FAIL: c-c++-common/attr-simd-3.c -std=gnu++14 PR68158 (test for errors, line 5)
I suspect pthreads is a fairly hard requirement. Either a test compile and link needs to be done, or we need to be able to whack out the tests on non-pthread systems.
Ok?
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 144e4e9..6d25666 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -1450,6 +1450,10 @@ proc check_effective_target_cilkplus { } {
return 0;
}
+ if { ! [check_effective_target_pthread] } {
+ return 0;
+ }
+
return 1
}