This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Build, Driver] Add -lcilkrts for -fcilkplus


Il 26/03/2014 00:28, Tobias Burnus ha scritto:
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


Ok.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]