diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2010-07-13 10:41:15 +0000 |
---|---|---|
committer | Kaz Kojima <kkojima@gcc.gnu.org> | 2010-07-13 10:41:15 +0000 |
commit | 535b951fb62e9835cce515a59f94bf1956fc587a (patch) | |
tree | 3a5b3e906bd47435e0a953fd1b5a864811c5637c /gcc/config | |
parent | 6d06590db7d87474cc9ff2b685743af067e72628 (diff) | |
download | gcc-535b951fb62e9835cce515a59f94bf1956fc587a.zip gcc-535b951fb62e9835cce515a59f94bf1956fc587a.tar.gz gcc-535b951fb62e9835cce515a59f94bf1956fc587a.tar.bz2 |
re PR target/44761 (sh.md warnings)
PR target/44761
* mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
to variable emited.
* config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
* config/sh/sh.md (symGOT_load): Likewise.
(symDTPOFF2reg): Likewise.
(symTPOFF2reg): Likewise.
From-SVN: r162135
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/sh/sh.c | 11 | ||||
-rw-r--r-- | gcc/config/sh/sh.md | 13 |
2 files changed, 11 insertions, 13 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 9ef18af..4f5b59c 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -6861,13 +6861,12 @@ sh_expand_prologue (void) for (i = 0; i < NPARM_REGS(SImode); i++) { int rn = NPARM_REGS(SImode) + FIRST_PARM_REG - i - 1; - rtx insn; if (i >= (NPARM_REGS(SImode) - crtl->args.info.arg_count[(int) SH_ARG_INT] )) break; - insn = push (rn); + push (rn); } } } @@ -7232,7 +7231,7 @@ sh_expand_epilogue (bool sibcall_p) { enum machine_mode mode = (enum machine_mode) entry->mode; int reg = entry->reg; - rtx reg_rtx, mem_rtx, post_inc = NULL_RTX, insn; + rtx reg_rtx, mem_rtx, post_inc = NULL_RTX; offset = offset_base + entry->offset; reg_rtx = gen_rtx_REG (mode, reg); @@ -7305,7 +7304,7 @@ sh_expand_epilogue (bool sibcall_p) if ((reg == PR_REG || SPECIAL_REGISTER_P (reg)) && mem_rtx != post_inc) { - insn = emit_move_insn (r0, mem_rtx); + emit_move_insn (r0, mem_rtx); mem_rtx = r0; } else if (TARGET_REGISTER_P (reg)) @@ -7314,13 +7313,13 @@ sh_expand_epilogue (bool sibcall_p) /* Give the scheduler a bit of freedom by using up to MAX_TEMPS registers in a round-robin fashion. */ - insn = emit_move_insn (tmp_reg, mem_rtx); + emit_move_insn (tmp_reg, mem_rtx); mem_rtx = tmp_reg; if (*++tmp_pnt < 0) tmp_pnt = schedule.temps; } - insn = emit_move_insn (reg_rtx, mem_rtx); + emit_move_insn (reg_rtx, mem_rtx); } gcc_assert (entry->offset + offset_base == d + d_rounding); diff --git a/gcc/config/sh/sh.md b/gcc/config/sh/sh.md index 485c038..495e151 100644 --- a/gcc/config/sh/sh.md +++ b/gcc/config/sh/sh.md @@ -8469,7 +8469,7 @@ label: "" " { - rtx insn, mem; + rtx mem; operands[2] = !can_create_pseudo_p () ? operands[0] : gen_reg_rtx (Pmode); operands[3] = !can_create_pseudo_p () ? operands[0] : gen_reg_rtx (Pmode); @@ -8518,7 +8518,7 @@ label: mem = gen_rtx_MEM (Pmode, operands[3]); MEM_NOTRAP_P (mem) = 1; /* ??? Should we have a special alias set for the GOT? */ - insn = emit_move_insn (operands[0], mem); + emit_move_insn (operands[0], mem); DONE; }") @@ -8685,7 +8685,7 @@ mov.l\\t1f,r4\\n\\ "" " { - rtx dtpoffsym, insn; + rtx dtpoffsym; rtx t = (!can_create_pseudo_p () ? operands[0] : gen_reg_rtx (GET_MODE (operands[0]))); @@ -8693,8 +8693,7 @@ mov.l\\t1f,r4\\n\\ dtpoffsym = gen_sym2DTPOFF (operands[1]); PUT_MODE (dtpoffsym, Pmode); emit_move_insn (t, dtpoffsym); - insn = emit_move_insn (operands[0], - gen_rtx_PLUS (Pmode, t, operands[2])); + emit_move_insn (operands[0], gen_rtx_PLUS (Pmode, t, operands[2])); DONE; }") @@ -8736,11 +8735,11 @@ mov.l\\t1f,r0\\n\\ "" " { - rtx tpoffsym, insn; + rtx tpoffsym; tpoffsym = gen_sym2TPOFF (operands[1]); PUT_MODE (tpoffsym, Pmode); - insn = emit_move_insn (operands[0], tpoffsym); + emit_move_insn (operands[0], tpoffsym); DONE; }") |