https://gcc.gnu.org/g:f50679ec5db3f4b33f793caa15344355bca7c45d
commit r17-2150-gf50679ec5db3f4b33f793caa15344355bca7c45d Author: Oleg Endo <[email protected]> Date: Sun Jul 5 18:10:04 2026 +0900 SH: Fix PR 67643 amendment of commit b6b9318ac9e72d6e gcc/ChangeLog: PR target/67643 PR target/126117 * config/sh/sh.cc (fpscr_set_from_mem): Add missing argument to get_free_reg invocation. Diff: --- gcc/config/sh/sh.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/sh/sh.cc b/gcc/config/sh/sh.cc index abc073c93354..05b0060c0c18 100644 --- a/gcc/config/sh/sh.cc +++ b/gcc/config/sh/sh.cc @@ -8902,7 +8902,7 @@ fpscr_set_from_mem (int mode, HARD_REG_SET regs_live) { // After RA it needs the address with a post-inc mem or else it will // result in an unrecognizable insn. - rtx scratch = get_free_reg (); + rtx scratch = get_free_reg (regs_live); emit_move_insn (scratch, XEXP (src, 0)); if (index != 0) emit_insn (gen_addsi3 (scratch, scratch, GEN_INT (index * 4)));
