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: Generally link to libgomp for -ftree-parallelize-loops=* (was: [gomp4 4/9] OpenACC: The runtime library will be implemented in libgomp, too.)


On Thu, Nov 07, 2013 at 02:58:31PM +0100, Thomas Schwinge wrote:
> On Thu, 7 Nov 2013 09:15:45 +0100, Jakub Jelinek <jakub@redhat.com> wrote:
> > On Wed, Nov 06, 2013 at 08:42:18PM +0100, thomas@codesourcery.com wrote:
> > > --- gcc/config/arc/arc.h
> > > +++ gcc/config/arc/arc.h
> > > @@ -174,7 +174,7 @@ along with GCC; see the file COPYING3.  If not see
> > >      %(linker) %l " LINK_PIE_SPEC "%X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}\
> > >      %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\
> > >      %{static:} %{L*} %(mfwrap) %(link_libgcc) %o\
> > > -    %{fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib)\
> > > +    %{fopenacc|fopenmp:%:include(libgomp.spec)%(link_gomp)} %(mflib)\
> > 
> > Perhaps add here |ftree-parallelize-loops=* too?  [...]
> 
> Like this (for trunk and gomp-4_0-branch)?
> 
> 	gcc/
> 	* config/arc/arc.h (LINK_COMMAND_SPEC): For
> 	-ftree-parallelize-loops=*, link to libgomp and its dependencies.
> 	* config/ia64/hpux.h (LIB_SPEC): Likewise.
> 	* config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
> 	* config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
> 	* gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's
> 	dependencies.
> 	libgomp/
> 	* libgomp.spec.in: Update comment about libgomp's dependencies.
> 	* configure.ac: Likewise.
> 	* configure: Regenerate.

Yes, thanks.

	Jakub


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