From: Uros Bizjak Date: Tue, 11 Sep 2018 19:36:35 +0000 (+0200) Subject: reg-stack.c (subst_asm_stack_regs): Call replace_reg also for clobbers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f621085b8098b65ddedc379a03ce70e4ff0a7df;p=gcc.git reg-stack.c (subst_asm_stack_regs): Call replace_reg also for clobbers. * reg-stack.c (subst_asm_stack_regs): Call replace_reg also for clobbers. Remove obsolete comment. From-SVN: r264216 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a5bd8982e94..ccadf68adfc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-09-11 Uros Bizjak + + * reg-stack.c (subst_asm_stack_regs): Call replace_reg also + for clobbers. Remove obsolete comment. + 2018-09-11 Uros Bizjak * config/i386/i386.md (define_attr "type"): Remove mpxmov, mpxmk, diff --git a/gcc/reg-stack.c b/gcc/reg-stack.c index 0f1b6d52f01..d97a358e3f8 100644 --- a/gcc/reg-stack.c +++ b/gcc/reg-stack.c @@ -2275,13 +2275,7 @@ subst_asm_stack_regs (rtx_insn *insn, stack_ptr regstack) int regnum = get_hard_regnum (regstack, clobber_reg[i]); if (regnum >= 0) - { - /* Sigh - clobbers always have QImode. But replace_reg knows - that these regs can't be MODE_INT and will assert. Just put - the right reg there without calling replace_reg. */ - - *clobber_loc[i] = FP_MODE_REG (regnum, DFmode); - } + replace_reg (clobber_loc[i], regnum); } /* Now remove from REGSTACK any inputs that the asm implicitly popped. */