This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Cilk with -lcilkrts (was: Re: [wwwdocs] RFC - mention Cilk Plus in the GCC 4.9 release notes)
- From: Tobias Burnus <burnus at net-b dot de>
- To: Andi Kleen <andi at firstfloor dot org>, "Iyer\, Balaji V" <balaji dot v dot iyer at intel dot com>
- Cc: Gerald Pfeifer <gerald at pfeifer dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Jakub Jelinek <jakub at redhat dot com>
- Date: Sat, 08 Mar 2014 21:22:54 +0100
- Subject: Cilk with -lcilkrts (was: Re: [wwwdocs] RFC - mention Cilk Plus in the GCC 4.9 release notes)
- Authentication-results: sourceware.org; auth=none
- References: <531B60A4 dot 7050209 at net-b dot de> <alpine dot LSU dot 2 dot 11 dot 1403081927560 dot 7314 at tuna dot site> <BF230D13CA30DD48930C31D4099330003A522CE5 at FMSMSX101 dot amr dot corp dot intel dot com> <531B6E35 dot 3050803 at net-b dot de> <BF230D13CA30DD48930C31D4099330003A524D09 at FMSMSX101 dot amr dot corp dot intel dot com> <87zjl05uo7 dot fsf at tassilo dot jf dot intel dot com>
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)}\