https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97682
--- Comment #2 from Andreas Schwab <sch...@linux-m68k.org> --- I think the bug is really that riscv_legitimize_call_address uses RISCV_PROLOGUE_TEMP, which can conflict with its uses in the epilogue, as seen.