This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Generally link to libgomp for -ftree-parallelize-loops=* (was: [gomp4 4/9] OpenACC: The runtime library will be implemented in libgomp, too.)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 7 Nov 2013 15:38:04 +0100
- Subject: Re: Generally link to libgomp for -ftree-parallelize-loops=* (was: [gomp4 4/9] OpenACC: The runtime library will be implemented in libgomp, too.)
- Authentication-results: sourceware.org; auth=none
- References: <878ux1jp2s dot fsf at schwinge dot name> <1383766943-8863-1-git-send-email-thomas at codesourcery dot com> <1383766943-8863-2-git-send-email-thomas at codesourcery dot com> <1383766943-8863-3-git-send-email-thomas at codesourcery dot com> <1383766943-8863-4-git-send-email-thomas at codesourcery dot com> <20131107081545 dot GQ27813 at tucnak dot zalov dot cz> <87wqkkia9k dot fsf at schwinge dot name>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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