https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89794
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktkachov at gcc dot gnu.org, | |ramana at gcc dot gnu.org, | |rearnsha at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Guess with PR89475 fix this will be latent, unless one disables ccp. Anyway, to me this looks like a backend bug. The function is leaf, but for some strange reason LRA uses the lr register and so lr needs to be pushed and poped, but that push/pop doesn't seem to be accounted for in the afp to sp elimination offset computation.