https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100724
--- Comment #5 from Dave Love <fx at gnu dot org> --- Thanks for the explanation. 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.