[Bug target/51523] LTO keeps unneeded functions (mingw32 target)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523 Kai Tietz ktietz at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #7 from Kai Tietz ktietz at gcc dot gnu.org --- Ok, due it is a linker-bug, I close this bug as invalid. If it is shown later that issue is however caused by gcc, please re-open.
[Bug target/51523] LTO keeps unneeded functions (mingw32 target)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523 --- Comment #5 from Richard Guenther rguenth at gcc dot gnu.org 2011-12-14 10:36:15 UTC --- This looks more like a linker bug which doesn't seem to account for the contents of the .exp file. It works properly on linux targets with providing a version script, -Wl,--version-script=t.map with t.map containing FOO_1.0 { global: foo; bar; local: *; };
[Bug target/51523] LTO keeps unneeded functions (mingw32 target)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523 --- Comment #6 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 2011-12-14 15:45:29 UTC --- Filed a linker bug http://sourceware.org/PR13497.
[Bug target/51523] LTO keeps unneeded functions (mingw32 target)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Target||mingw32 Status|UNCONFIRMED |WAITING Last reconfirmed||2011-12-13 Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther rguenth at gcc dot gnu.org 2011-12-13 11:05:31 UTC --- I think you need -fwhole-program as mingw32 is not using a linker plugin(?) If so, this works as intended and the bug is invalid.
[Bug target/51523] LTO keeps unneeded functions (mingw32 target)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523 Kai Tietz ktietz at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |NEW CC||ktietz at gcc dot gnu.org --- Comment #2 from Kai Tietz ktietz at gcc dot gnu.org 2011-12-13 11:14:38 UTC --- mingw use linker-plugin and therefore bug is valid
[Bug target/51523] LTO keeps unneeded functions (mingw32 target)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW |WAITING --- Comment #3 from Richard Guenther rguenth at gcc dot gnu.org 2011-12-13 11:30:28 UTC --- Can you please attach the resolution file then? It's the file passed to -fresolution=filename at WPA stage which should be preserved and seen with -v -save-temps. What linker version are you using?
[Bug target/51523] LTO keeps unneeded functions (mingw32 target)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523 --- Comment #4 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 2011-12-14 06:02:21 UTC --- Created attachment 26075 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26075 Two resolution files Here you are. The resolution files differ depending on whether -fvisibility=hidden is used. When I added a wrapper script around lto1, which changed PREVAILING_DEF_IRONLY_EXP to PREVAILING_DEF_IRONLY, baz disappeared. I use LD 2.22.51 (trunk).