[Bug target/105257] [8/9/10/11/12 regression] ICE in final_scan_insn_1, at final.cc:2811
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Apr 19 10:20:32 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105257
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The problem is that (reg:DI 24 %i0 [109]) in a delay slot of the return
> satisfies sparc_pic_register_p but epilogue_renumber turns that into:
> (reg:DI 8 %o0) which doesn't satisfy it.
> The attached patch fixes that by always copying over ORIGINAL_REGNO.
This looks good to me. You might as well want to remove the ugly fallthrough.
More information about the Gcc-bugs
mailing list