[Bug lto/115300] gcc 14 cannot compile itself on Windows when bootstrap-lto is specified

"ebotcazou at gcc dot gnu.org via Gcc-bugs" <[email protected]> Wed, 05 Aug 2026 07:32:41 +0000
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115300

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The patch to omit the insn-emit object files does help slightly, but there
> are still far too many symbols being exported. Is there any hint as to which
> object files don't need to be exported for the plugin API? I'd much rather
> include logic to exclude these object files than lose the ability to run LTO
> with gcc for Windows, as to my knowledge gcc's LTO capabilities come from
> the linker plugin.

This has nothing to do with linker plugins though, but with compiler plugins,
so is irrelevant for LTO.  Just do not configure with --enable-plugin on
Windows.