[Build, Driver] Add -lcilkrts for -fcilkplus
Tobias Burnus
burnus@net-b.de
Wed Mar 26 00:24:00 GMT 2014
Paolo Bonzini wrote:
> Il 11/03/2014 07:42, Tobias Burnus ha scritto:
>> +XPCFLAGS=""
>> +CFLAGS="$CFLAGS -pthread"
>> +AC_LINK_IFELSE(
>> ...
>> + [XPCFLAGS=" -Wc,-pthread"],
> XPCFLAGS is dead, I think?
Yes - contrary to libgomp, from which I have taken that code block. I
have now removed it.
> Also, should -pthread be included in the spec too?
Regarding -pthreads: That should already be included via gcc/gcc.c:
+#define CILK_SELF_SPECS "%{fcilkplus: -pthread}"
static const char *const driver_self_specs[] = {
...
CILK_SELF_SPECS
};
Updated patch below (nongenerated libcilkrts only).
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cilk.diff
Type: text/x-patch
Size: 2356 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140326/6ffefe6a/attachment.bin>
More information about the Gcc-patches
mailing list