[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-07 Thread davek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #5 from Dave Korn davek at gcc dot gnu.org 2011-04-07 15:49:29 UTC --- Well, this is basically a weakness in the pass-through solution implemented for PR 42690; it only knows about the compilers stdlibs, and doesn't process any

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-07 Thread davek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #6 from Dave Korn davek at gcc dot gnu.org 2011-04-07 15:51:30 UTC --- Created attachment 23913 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=23913 WIP patch Work in progress: see comment at start of do_rescan_work() re

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-07 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #7 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 2011-04-07 18:18:00 UTC --- LD with patch from comment 6 fails on testcase from PR ld/12277.

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-07 Thread patrick at motec dot com.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #8 from Patrick Oppenlander patrick at motec dot com.au 2011-04-07 22:15:56 UTC --- The correct fix is going to be in the linker, not the compiler, by implementing a second library scan pass and obsoleting the pass-through

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-07 Thread davek at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #9 from Dave Korn davek at gcc dot gnu.org 2011-04-07 22:22:51 UTC --- (In reply to comment #8) The correct fix is going to be in the linker, not the compiler, by implementing a second library scan pass and obsoleting the

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-07 Thread patrick at motec dot com.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #10 from Patrick Oppenlander patrick at motec dot com.au 2011-04-07 22:50:25 UTC --- Ok, thanks for explaining that. Another problem I've run into here is that I also need to pass through ecrtn.o with -Wl,-plugin-opt=-pass-through to

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-06 Thread patrick at motec dot com.au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #4 from Patrick Oppenlander patrick at motec dot com.au 2011-04-06 22:47:12 UTC --- (In reply to comment #3) For now, option -Wl,-plugin-opt=-pass-through=$(LIBGCC) can be manually added to the command line (as discussed in

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-05 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 Dmitry Gorbachev d.g.gorbachev at gmail dot com changed: What|Removed |Added CC||davek at

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-05 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug lto/48447] LTO link fails to link libgcc correctly when -nostdlib option is specified

2011-04-05 Thread d.g.gorbachev at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48447 --- Comment #3 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 2011-04-05 12:42:52 UTC --- For now, option -Wl,-plugin-opt=-pass-through=$(LIBGCC) can be manually added to the command line (as discussed in PR42690).