https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109541
--- Comment #9 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- (In reply to Eric Botcazou from comment #7) > The problem is that LRA assigns a floating-point register to the PIC > pseudo-register (pic_offset_table_rtx) and the SPARC back-end is not > prepared for it. > > Vladimir, would it be feasible to prevent this from happening? Sorry, I can not reproduce it on gcc-11, gcc-12, and master using -O1 -mcpu=niagara4 -fpic -c a-sha512.i. Fortunately, I can reproduce https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108703. So I'll start on PR108703 first.