]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
SH: Fix PR 67643 amendment of commit b6b9318ac9e72d6e
authorOleg Endo <olegendo@gcc.gnu.org>
Sun, 5 Jul 2026 09:10:04 +0000 (18:10 +0900)
committerOleg Endo <olegendo@gcc.gnu.org>
Sun, 5 Jul 2026 09:12:01 +0000 (18:12 +0900)
gcc/ChangeLog:
PR target/67643
PR target/126117
* config/sh/sh.cc (fpscr_set_from_mem): Add missing argument to
get_free_reg invocation.

gcc/config/sh/sh.cc

index abc073c933544e58993994edfcf088c7757bb4dd..05b0060c0c182f7914c5702ad2b17299bae6d6db 100644 (file)
@@ -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)));