At least gcc/lto/common.c makes unconditional use of __attribute__ ((visibility ("hidden"))), which means you are forced to use GCC as a bootstrap compiler. If building lto and the lto-plugin were moved to stage2, this wouldn't be a problem.
-- Summary: lto requires GCC as bootstrap compiler Product: gcc Version: lto Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: dnovillo at gcc dot gnu dot org ReportedBy: ro at gcc dot gnu dot org GCC build triplet: sparc-sun-solaris2.11 GCC host triplet: sparc-sun-solaris2.11 GCC target triplet: sparc-sun-solaris2.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39021