https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100724
--- Comment #6 from Jan Hubicka <hubicka at ucw dot cz> --- > Could the manual entry for -fwhole-program just be amended to clarify that > it's > a fallback for when a linker plugin isn't available for -flto. That may be > what it was intended to say, but it's not clear to me. I used -fwhole-program > because it seemed to fit my case exactly. It can be also used in non-lto if your program has only one source file and FE is not producing duplicated decls... Honza