From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9212 invoked by alias); 10 Jan 2011 16:09:30 -0000 Received: (qmail 9201 invoked by uid 22791); 10 Jan 2011 16:09:29 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX,TW_DC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 10 Jan 2011 16:09:24 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/47244] New: [4.6 Regression] plugin linker is used unconditionally X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 10 Jan 2011 16:15:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00913.txt.bz2 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