https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89884
Jan Hubicka <hubicka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-07-01 Ever confirmed|0 |1 --- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> --- The problem here is that -fno-use-linker-plugin implies fat LTO. So we compile the code twice - once at compile time and once at link-time and therefore also output the warning twice. I do not see how to prevent this from hapenning - this is behaviour of all late warnings with -ffat-lto-objects. Is there a way to make testcase tolerate duplicated warnings or limit to plugin enabled only?