https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64860
--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I suppose proper fix is to make flag_incremental_linking and turn -r from Driver only. Then we could revisit individual optimizations that do rely on the fact that static linking will not be re-done.