https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71286
Andris Pavenis <andris.pavenis at iki dot fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andris.pavenis at iki dot fi --- Comment #3 from Andris Pavenis <andris.pavenis at iki dot fi> --- I have only tried -flto for DJGPP in case of native compiler. In this case LTO only have limited functionality due to absence of plugin and as result modules read by linker from static libraries are left out from optimization as far as I understand. At least -flto seems to work in this limited case (several object files) for native DJGPP compiler