From: Oleg Endo Date: Sun, 5 Jul 2026 09:10:04 +0000 (+0900) Subject: SH: Fix PR 67643 amendment of commit b6b9318ac9e72d6e X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f50679ec5db3f4b33f793caa15344355bca7c45d;p=thirdparty%2Fgcc.git 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 --git a/gcc/config/sh/sh.cc b/gcc/config/sh/sh.cc index abc073c9335..05b0060c0c1 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)));