Bug 13494 - LTO removes needed functions (mingw32 target)
Summary: LTO removes needed functions (mingw32 target)
Status: NEW
Alias: None
Product: binutils
Classification: Unclassified
Component: ld (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 02:21 UTC by Dmitry Gorbachev
Modified: 2012-02-27 20:17 UTC (History)
0 users

See Also:
Host:
Target: mingw32
Build:
Last reconfirmed:


Attachments
Testcase (264 bytes, text/plain)
2011-12-13 02:21 UTC, Dmitry Gorbachev
Details
Testcase #2 (250 bytes, text/plain)
2011-12-27 22:07 UTC, Dmitry Gorbachev
Details
Testcase #3 (307 bytes, text/plain)
2012-02-27 20:17 UTC, Dmitry Gorbachev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorbachev 2011-12-13 02:21:42 UTC
Created attachment 6106 [details]
Testcase

About `-fvisibility=hidden' option, see <http://gcc.gnu.org/PR51523>.
Comment 1 Dmitry Gorbachev 2011-12-14 15:37:29 UTC
Bug 13497: "LTO keeps unneeded functions (mingw32 target)".
Comment 2 Dmitry Gorbachev 2011-12-27 22:06:02 UTC
Another bug: LD removes a function given as an argument to `--entry=...' option.

Symbol `_foo' gets PREVAILING_DEF_IRONLY_EXP resolution.
Comment 3 Dmitry Gorbachev 2011-12-27 22:07:44 UTC
Created attachment 6134 [details]
Testcase #2
Comment 4 Dmitry Gorbachev 2012-02-27 20:17:54 UTC
Created attachment 6253 [details]
Testcase #3