https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103246
--- Comment #17 from Jan Hubicka <hubicka at gcc dot gnu.org> --- and fun fact is that it really depends how program is paritioned. -flto-partition=max keeps problem reproducing while -flto-partition=one makes it go away and -flto-partition=one --disable-tree-modref2 brings it back.