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]

Cilk with -lcilkrts (was: Re: [wwwdocs] RFC - mention Cilk Plus in the GCC 4.9 release notes)


Andi Kleen wrote:
It would be also good if the documentation mentioned that you have to specify -lcilkrts

Wouldn't it make more sense to automatically add the option? For instance like the following? Or do we need to do the same as for libgomp and create a .spec file?

Tobias

--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -768,2 +768,3 @@ proper position among the other output files. */
%{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)}\
+    %{fcilkplus:-lcilkrts}\
     %{fgnu-tm:%:include(libitm.spec)%(link_itm)}\


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