On Jan 4, 2016, at 9:09 AM, Nathan Sidwell <nat...@acm.org> wrote: > On 01/04/16 10:06, Bernd Schmidt wrote: >> On 01/01/2016 07:13 PM, 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' >> >> > @@ -1450,6 +1450,10 @@ proc check_effective_target_cilkplus { } { >> > return 0; >> > } >> > >> > + if { ! [check_effective_target_pthread] } { >> > + return 0; >> > + } >> > + >> >> I think you'll also want to revert Nathan's earlier change that adds just >> nvptx >> for the same reason. Ok with that change. > > Yes please.
I believe that patch has: +/* { dg-do compile { target cilkplus } } */ in it, and this I believe is required for the test to be skipped on my target?