http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53751
vincenzo Innocente <vincenzo.innocente at cern dot ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[lto] collect2 generates a |[lto] collect2 generates a |resolution file name |resolution file name |-lm.res |-lm.res (with -save-temps) --- Comment #3 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2012-06-22 12:28:56 UTC --- with just one file, minimal opt first ok second -lm.res touch a1.cc c++ -Wl,-v -fPIC -flto a1.cc -shared -o bho.so -save-temps c++ -Wl,-v -fPIC -flto a1.o -shared -o bho.so -save-temps collect2 version 4.7.2 20120615 (prerelease) [gcc-4_7-branch revision 188650] /afs/cern.ch/user/i/innocent/w3/gcc47slc5/bin/ld -plugin /afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/liblto_plugin.so -plugin-opt=/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper -plugin-opt=-fresolution=a1.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -shared -o bho.so /usr/lib/../lib64/crti.o /afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtbeginS.o -L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2 -L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../.. -v a1.o -lstdc++ -lm -lgcc_s -lc -lgcc_s /afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtendS.o /usr/lib/../lib64/crtn.o GNU gold (GNU Binutils 2.22.52.20120515) 1.11 [Leaving LTRANS /tmp/innocent/cc29ngrg.args] [Leaving LTRANS bho.so.ltrans.out] [Leaving LTRANS /tmp/innocent/cc4SuQ5u.args] [Leaving LTRANS bho.so.ltrans0.o] c++ -Wl,-v -fPIC -flto a1.o -shared -o bho.so -save-temps collect2 version 4.7.2 20120615 (prerelease) [gcc-4_7-branch revision 188650] /afs/cern.ch/user/i/innocent/w3/gcc47slc5/bin/ld -plugin /afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/liblto_plugin.so -plugin-opt=/afs/cern.ch/user/i/innocent/w3/gcc47slc5/libexec/gcc/x86_64-unknown-linux-gnu/4.7.2/lto-wrapper -plugin-opt=-fresolution=-lm.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s --eh-frame-hdr -m elf_x86_64 -shared -o bho.so /usr/lib/../lib64/crti.o /afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtbeginS.o -L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2 -L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/../../.. -v a1.o -lstdc++ -lm -lgcc_s -lc -lgcc_s /afs/cern.ch/user/i/innocent/w3/gcc47slc5/lib/gcc/x86_64-unknown-linux-gnu/4.7.2/crtendS.o /usr/lib/../lib64/crtn.o GNU gold (GNU Binutils 2.22.52.20120515) 1.11 [Leaving LTRANS /tmp/innocent/ccto8gdr.args] [Leaving LTRANS bho.so.ltrans.out] [Leaving LTRANS /tmp/innocent/cczK9K70.args] [Leaving LTRANS bho.so.ltrans0.o]