From 1f621085b8098b65ddedc379a03ce70e4ff0a7df Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Tue, 11 Sep 2018 21:36:35 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/reg-stack.c | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) 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. */ -- 2.30.2