http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60160
Bug ID: 60160 Summary: Building with -flto in CFLAGS_FOR_TARGET / CXXFLAGS_FOR_TARGET Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: d.g.gorbachev at gmail dot com Created attachment 32115 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32115&action=edit Tentative patch Someone might want to build everything with LTO. Currently, I see two problems. 1. crtstuff.c: perhaps it'd be better to compile it with -fno-lto. 2. attribute used for _Unwind_* functions.