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.
