[Bug lto/61967] regression: cannot link with -flto

2014-07-31 Thread dilyan.palauzov at aegee dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967 --- Comment #7 from Дилян Палаузов --- (In reply to Andrew Pinski from comment #6) > (In reply to Дилян Палаузов from comment #5) > > Using gcc-ar instead of ar does not help: > > > > $grep AR\ = Makefile > > AR = gcc-ar > > ... > > > ranlib li

[Bug lto/61967] regression: cannot link with -flto

2014-07-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967 --- Comment #6 from Andrew Pinski --- (In reply to Дилян Палаузов from comment #5) > Using gcc-ar instead of ar does not help: > > $grep AR\ = Makefile > AR = gcc-ar > ... > ranlib libgnu.a You need to use gcc-ranlib too otherwise the symbol t

[Bug lto/61967] regression: cannot link with -flto

2014-07-30 Thread dilyan.palauzov at aegee dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967 --- Comment #5 from Дилян Палаузов --- Using gcc-ar instead of ar does not help: $grep AR\ = Makefile AR = gcc-ar ... $rm gnu/libgnu.a $make V=1 make[4]: Entering directory '/mnt/new/src/tar-1.28/gnu' rm -f libgnu.a gcc-ar cru libgnu.a copy-ac

[Bug lto/61967] regression: cannot link with -flto

2014-07-30 Thread dilyan.palauzov at aegee dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967 --- Comment #4 from Дилян Палаузов --- (In reply to Andrew Pinski from comment #2) > >../gnu/libgnu.a > > I bet it is due to how ../gnu/libgnu.a is generated. Does it use gcc-ar or > just ar? For 4.9 and above, we use slim lto object files so

[Bug lto/61967] regression: cannot link with -flto

2014-07-30 Thread dilyan.palauzov at aegee dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967 --- Comment #3 from Дилян Палаузов --- Please include a link from https://gcc.gnu.org/wiki/LinkTimeOptimization to https://gcc.gnu.org/wiki/LinkTimeOptimizationFAQ and update the latter to state (The next version of binutils [as of 2014-05-04] w

[Bug lto/61967] regression: cannot link with -flto

2014-07-30 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug lto/61967] regression: cannot link with -flto

2014-07-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61967 --- Comment #2 from Andrew Pinski --- >../gnu/libgnu.a I bet it is due to how ../gnu/libgnu.a is generated. Does it use gcc-ar or just ar? For 4.9 and above, we use slim lto object files so it does not produce a symbol table that ar does not u