https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67061
--- Comment #5 from Oleg Endo <olegendo at gcc dot gnu.org> --- Created attachment 36331 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36331&action=edit Proposed patch The issue with the function 'sh_find_set_of_reg' has also popped up when enabling LRA by default on trunk (see PR 55212). With the attached patch, sh-elf and sh64-elf newlib based toolchains build successfully. I'm now testing the patch on sh-elf.