public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/47244] New: [4.6 Regression] plugin linker is used unconditionally
@ 2011-01-10 16:15 rguenth at gcc dot gnu.org
  2011-01-10 16:15 ` [Bug driver/47244] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-01-10 16:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47244

           Summary: [4.6 Regression] plugin linker is used unconditionally
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org
                CC: hubicka@gcc.gnu.org


We now seem to always pass -plugin ./liblto_plugin.so ... to collect2, even
when not using LTO.  This causes us to always use the linker configured
for plugin use (--with-plugin-ld) via the collect-ld script and thus
with --with-plugin-ld=gold gold will be always used (which breaks the build
of libgo for me as gold is too old appearantly).

int main() { return 0; }

> strace -e execve -f ./xgcc -B. t.c -v -Wl,-debug 2>&1 | grep gold
Configured with: /space/rguenther/src/svn/trunk/configure --disable-bootstrap
--disable-nls --disable-libstdcxx-pch --enable-lto --enable-gold
--with-plugin-ld=/usr/bin/gold
--enable-languages=c,ada,c++,fortran,java,lto,objc,obj-c++,go
[pid  7648] execve("/usr/bin/gold", ["/usr/bin/gold", "-plugin",
"./liblto_plugin.so", "-plugin-opt=./lto-wrapper",
"-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc",
"-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc",
"-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"...,
"--eh-frame-hdr", "-m", "elf_x86_64", "-dynamic-linker",
"/lib64/ld-linux-x86-64.so.2", "/usr/lib/../lib64/crt1.o", ...], [/* 91 vars
*/]) = 0
rguenther@murzim:/abuild/rguenther/trunk-g/gcc> strace -e execve -f ./xgcc -B.
t.c -v -Wl,-debug 2>&1 | grep gold
Configured with: /space/rguenther/src/svn/trunk/configure --disable-bootstrap
--disable-nls --disable-libstdcxx-pch --enable-lto --enable-gold
--with-plugin-ld=/usr/bin/gold
--enable-languages=c,ada,c++,fortran,java,lto,objc,obj-c++,go
[pid  7667] execve("/usr/bin/gold", ["/usr/bin/gold", "-plugin",
"./liblto_plugin.so", "-plugin-opt=./lto-wrapper",
"-plugin-opt=-fresolution=/tmp/cc"..., "-plugin-opt=-pass-through=-lgcc",
"-plugin-opt=-pass-through=-lgcc_"..., "-plugin-opt=-pass-through=-lc",
"-plugin-opt=-pass-through=-lgcc", "-plugin-opt=-pass-through=-lgcc_"...,
"--eh-frame-hdr", "-m", "elf_x86_64", "-dynamic-linker",
"/lib64/ld-linux-x86-64.so.2", "/usr/lib/../lib64/crt1.o", ...], [/* 91 vars
*/]) = 0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-01-14 14:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10 16:15 [Bug driver/47244] New: [4.6 Regression] plugin linker is used unconditionally rguenth at gcc dot gnu.org
2011-01-10 16:15 ` [Bug driver/47244] " rguenth at gcc dot gnu.org
2011-01-11 13:30 ` hubicka at gcc dot gnu.org
2011-01-11 14:06 ` hubicka at gcc dot gnu.org
2011-01-11 14:07 ` dominiq at lps dot ens.fr
2011-01-11 14:09   ` Jan Hubicka
2011-01-11 14:11 ` hubicka at ucw dot cz
2011-01-11 16:48 ` hubicka at gcc dot gnu.org
2011-01-12 16:57 ` hubicka at gcc dot gnu.org
2011-01-12 17:03 ` hubicka at gcc dot gnu.org
2011-01-14 12:40 ` rguenth at gcc dot gnu.org
2011-01-14 14:49 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).