https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117064
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-10-11 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. Maybe the hook can also be removed, it's documentation says -- @defmac HARD_REGNO_RENAME_OK (@var{from}, @var{to}) A C expression that is nonzero if it is OK to rename a hard register @var{from} to another hard register @var{to}. One common use of this macro is to prevent renaming of a register to another register that is not saved by a prologue in an interrupt handler. The default is always nonzero. -- but the RA must have enough information to avoid similar issues. I noticed sel-sched.cc also uses HARD_REGNO_RENAME_OK.