Re: [PATCH] Use the LTO linker plugin by default

2014-03-14 Thread Richard Biener
On Fri, 14 Mar 2014, Rainer Orth wrote: > Rainer Orth writes: > > >>> > For this particular case at least. > >>> > > >>> > Note that I'm not against linking against static libgcc_s for > >>> > lto-plugin. The -static-libstdc++ we use is just because during > >>> > bootstrap picking up the corre

Re: [PATCH] Use the LTO linker plugin by default

2014-03-14 Thread Rainer Orth
Rainer Orth writes: >>> > For this particular case at least. >>> > >>> > Note that I'm not against linking against static libgcc_s for >>> > lto-plugin. The -static-libstdc++ we use is just because during >>> > bootstrap picking up the correct libstdc++ was deemed too hard >>> > to implement and

Re: [PATCH] Use the LTO linker plugin by default

2014-03-13 Thread Rainer Orth
Richard Biener writes: >> Exactly my words. But gcc provides zero help for that. All proposed >> workarounds (having every user of gcc set LD_LIBRARY_PATH, messing >> around with ldconfig or equivalent, having every single compiler user >> provide -rpath/-R on his own) are usability or function

Re: [PATCH] Use the LTO linker plugin by default

2014-03-13 Thread Richard Biener
On Thu, 13 Mar 2014, Rainer Orth wrote: > Richard Biener writes: > > >> > So then if it succeeds to link to a shared libgcc_s then why > >> > is it not able to find that later? Maybe you miss setting > >> > of a suitable LD_LIBRARY_PATH to pick up the runtime for > >> > your host compiler? > >>

Re: [PATCH] Use the LTO linker plugin by default

2014-03-13 Thread Rainer Orth
Richard Biener writes: >> > So then if it succeeds to link to a shared libgcc_s then why >> > is it not able to find that later? Maybe you miss setting >> > of a suitable LD_LIBRARY_PATH to pick up the runtime for >> > your host compiler? >> >> For the same reason that we use -static-libstdc++

Re: [PATCH] Use the LTO linker plugin by default

2014-03-13 Thread Richard Biener
On Wed, 12 Mar 2014, Rainer Orth wrote: > Richard Biener writes: > > > On Mon, 10 Mar 2014, Rainer Orth wrote: > > > >> Richard Biener writes: > >> > >> > Ouch. But as lto-plugin is a host module it should link against > >> > the host libgcc, no? During stage1, that is. So the question is >

Re: [PATCH] Use the LTO linker plugin by default

2014-03-12 Thread Rainer Orth
Richard Biener writes: > On Mon, 10 Mar 2014, Rainer Orth wrote: > >> Rainer Orth writes: >> >> > It does use the host compiler for me, too. >> > >> >> but maybe _that_ is the issue for you? (see also how it uses >> >> -static-libgcc, for me it doesn't even depend on libgcc_s) >> > >> > But as

Re: [PATCH] Use the LTO linker plugin by default

2014-03-12 Thread Rainer Orth
Richard Biener writes: > On Mon, 10 Mar 2014, Rainer Orth wrote: > >> Richard Biener writes: >> >> > Ouch. But as lto-plugin is a host module it should link against >> > the host libgcc, no? During stage1, that is. So the question is >> > why does it use the gcc/ compiler? >> > >> > For

Re: [PATCH] Use the LTO linker plugin by default

2014-03-11 Thread Richard Biener
On Mon, 10 Mar 2014, Rainer Orth wrote: > Rainer Orth writes: > > > It does use the host compiler for me, too. > > > >> but maybe _that_ is the issue for you? (see also how it uses > >> -static-libgcc, for me it doesn't even depend on libgcc_s) > > > > But as you can see above, libtool, being it

Re: [PATCH] Use the LTO linker plugin by default

2014-03-11 Thread Richard Biener
On Mon, 10 Mar 2014, Rainer Orth wrote: > Richard Biener writes: > > > Ouch. But as lto-plugin is a host module it should link against > > the host libgcc, no? During stage1, that is. So the question is > > why does it use the gcc/ compiler? > > > > For me it's using the host gcc: > > > >

Re: [PATCH] Use the LTO linker plugin by default

2014-03-10 Thread Rainer Orth
Rainer Orth writes: > It does use the host compiler for me, too. > >> but maybe _that_ is the issue for you? (see also how it uses >> -static-libgcc, for me it doesn't even depend on libgcc_s) > > But as you can see above, libtool, being its usual helpful self, simply > drops -static-libgcc ;-(

Re: [PATCH] Use the LTO linker plugin by default

2014-03-10 Thread Rainer Orth
Richard Biener writes: > Ouch. But as lto-plugin is a host module it should link against > the host libgcc, no? During stage1, that is. So the question is > why does it use the gcc/ compiler? > > For me it's using the host gcc: > > gcc -DHAVE_CONFIG_H -I. -I/space/rguenther/tramp3d/trunk/l

Re: [PATCH] Use the LTO linker plugin by default

2014-03-10 Thread Richard Biener
On Sat, 8 Mar 2014, Rainer Orth wrote: > Richard Biener writes: > > > The following patch addresses the common (?) issue of people > > omitting -flto from the linker command-line which gets more > > severe with GCC 4.9 where slim LTO objects are emitted by > > default. The patch simply _always_

Re: [PATCH] Use the LTO linker plugin by default

2014-03-08 Thread Rainer Orth
Richard Biener writes: > The following patch addresses the common (?) issue of people > omitting -flto from the linker command-line which gets more > severe with GCC 4.9 where slim LTO objects are emitted by > default. The patch simply _always_ arranges for the linker > plugin to be used, so if

Re: [PATCH] Use the LTO linker plugin by default

2014-03-06 Thread Jan Hubicka
> On Thu, 6 Mar 2014, Jan Hubicka wrote: > > > > On Tue, 4 Mar 2014, Jan Hubicka wrote: > > > > > > > > > > > > > The following patch addresses the common (?) issue of people > > > > > omitting -flto from the linker command-line which gets more > > > > > severe with GCC 4.9 where slim LTO object

Re: [PATCH] Use the LTO linker plugin by default

2014-03-06 Thread Richard Biener
On Thu, 6 Mar 2014, Jan Hubicka wrote: > > On Tue, 4 Mar 2014, Jan Hubicka wrote: > > > > > > > > > > The following patch addresses the common (?) issue of people > > > > omitting -flto from the linker command-line which gets more > > > > severe with GCC 4.9 where slim LTO objects are emitted by

Re: [PATCH] Use the LTO linker plugin by default

2014-03-05 Thread Jan Hubicka
> On Tue, 4 Mar 2014, Jan Hubicka wrote: > > > > > > > The following patch addresses the common (?) issue of people > > > omitting -flto from the linker command-line which gets more > > > severe with GCC 4.9 where slim LTO objects are emitted by > > > default. The patch simply _always_ arranges

Re: [PATCH] Use the LTO linker plugin by default

2014-03-05 Thread Richard Biener
On Tue, 4 Mar 2014, Jan Hubicka wrote: > > > > The following patch addresses the common (?) issue of people > > omitting -flto from the linker command-line which gets more > > severe with GCC 4.9 where slim LTO objects are emitted by > > default. The patch simply _always_ arranges for the linker

Re: [PATCH] Use the LTO linker plugin by default

2014-03-04 Thread Jan Hubicka
> Am 04.03.2014 13:30, schrieb Markus Trippelsdorf: > > What is missing is a big fat warning in > > http://gcc.gnu.org/gcc-4.9/changes.html that one should use the gcc > > binutils wrappers (gcc-ar, etc.) when building projects with LTO. > > Is this enough? Or should the autoconf macros changed t

Re: [PATCH] Use the LTO linker plugin by default

2014-03-04 Thread Matthias Klose
Am 04.03.2014 13:30, schrieb Markus Trippelsdorf: > What is missing is a big fat warning in > http://gcc.gnu.org/gcc-4.9/changes.html that one should use the gcc > binutils wrappers (gcc-ar, etc.) when building projects with LTO. Is this enough? Or should the autoconf macros changed to look for t

Re: [PATCH] Use the LTO linker plugin by default

2014-03-04 Thread Jan Hubicka
> On 2014.03.04 at 13:00 +0100, Richard Biener wrote: > > > > The following patch addresses the common (?) issue of people > > omitting -flto from the linker command-line which gets more > > severe with GCC 4.9 where slim LTO objects are emitted by > > default. The patch simply _always_ arranges

Re: [PATCH] Use the LTO linker plugin by default

2014-03-04 Thread Jan Hubicka
> > The following patch addresses the common (?) issue of people > omitting -flto from the linker command-line which gets more > severe with GCC 4.9 where slim LTO objects are emitted by > default. The patch simply _always_ arranges for the linker > plugin to be used, so if there are any (slim) L

Re: [PATCH] Use the LTO linker plugin by default

2014-03-04 Thread Markus Trippelsdorf
On 2014.03.04 at 13:00 +0100, Richard Biener wrote: > > The following patch addresses the common (?) issue of people > omitting -flto from the linker command-line which gets more > severe with GCC 4.9 where slim LTO objects are emitted by > default. The patch simply _always_ arranges for the link