https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109819
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Well, we have to ensure that with -fno-lto linking, even if some or all compilation units were compiled with -flto we don't actually use the (non-offloading) LTO sections for the linking. All we want is if there are any offloading LTO sections to use them regardless of whether -flto was used or not (and let mkoffload decide whether to actually compile it and for which offloading targets).