On 01/01/16 13:13, Mike Stump wrote:
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?
Probably not. See the discussion at
https://gcc.gnu.org/ml/gcc-patches/2015-12/msg01882.html Admittedly, that was
annotating the test directly, but Rainer's comment suggests to me that
requiring pthreads would be too great a hammer.
You don't say what target -- is it a system where a target triplet is
insufficient for this check?
nathan