http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51523
Bug #: 51523 Summary: LTO keeps unneeded functions (mingw32 target) Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: d.g.gorbac...@gmail.com Created attachment 26067 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26067 Testcase Unless compiling with `-fvisibility=hidden'. I think it's a bug and not intended behavior. Otherwise, it should be documented. See also `--export-all-symbols' bug: <http://sourceware.org/PR13494>.