http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58733
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |lto Priority|P3 |P1 CC| |hjl.tools at gmail dot com --- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Seems like -fuse-ld=gold doesn't work with -flto, so not yet confirmed. ./xgcc -B. t.c t2.c -flto -fuse-ld=gold /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: -f may not be used without -shared collect2: error: ld returned 1 exit status it invokes collect.ld for me when doing make check-g++ RUNTESTFLAGS="--target_board=unix/-fuse-ld=gold lto.exp=20090302_0.C" with an installed compiler -fuse-ld=gold works. It would be nice if running the testsuite with an alternate linker would work - HJ, can you try investigating this?