summaryrefslogtreecommitdiff
path: root/gcc/config/avr
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-07 16:58:46 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-07 16:58:46 +0000
commitd1f9b275e42cf5c753e9f05789d89cc132726607 (patch)
treed586b7005253121ffef57e4f1d75d48de1056334 /gcc/config/avr
parent3dd2833b51262c109ebc4b6f3f93973c286cd7cd (diff)
downloadgcc-d1f9b275e42cf5c753e9f05789d89cc132726607.tar.gz
gcc/
* rtl.h (always_void_p): New function. * gengenrtl.c (always_void_p): Likewise. (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes with code foo are always VOIDmode. * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly. * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c, compare-elim.c, config/aarch64/aarch64.c, config/aarch64/aarch64.md, config/alpha/alpha.c, config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md, config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md, config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md, config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c, config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c, config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c, config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c, config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c, config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c, config/ia64/vect.md, config/iq2000/iq2000.c, config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md, config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c, config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md, config/mep/mep.c, config/microblaze/microblaze.c, config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c, config/mn10300/mn10300.c, config/msp430/msp430.c, config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c, config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c, config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c, config/rs6000/altivec.md, config/rs6000/rs6000.c, config/rs6000/rs6000.md, config/rs6000/vector.md, config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md, config/s390/s390.c, config/s390/s390.md, config/sh/sh.c, config/sh/sh.md, config/sh/sh_treg_combine.cc, config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c, config/spu/spu.md, config/stormy16/stormy16.c, config/tilegx/tilegx.c, config/tilegx/tilegx.md, config/tilepro/tilepro.c, config/tilepro/tilepro.md, config/v850/v850.c, config/v850/v850.md, config/vax/vax.c, config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c, expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c, lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c, reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c, var-tracking.c: Update calls accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222883 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/avr')
-rw-r--r--gcc/config/avr/avr.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c
index 205fcdb02bf..7436b59a970 100644
--- a/gcc/config/avr/avr.c
+++ b/gcc/config/avr/avr.c
@@ -1129,7 +1129,7 @@ emit_push_byte (unsigned regno, bool frame_related_p)
mem = gen_frame_mem (QImode, mem);
reg = gen_rtx_REG (QImode, regno);
- insn = emit_insn (gen_rtx_SET (VOIDmode, mem, reg));
+ insn = emit_insn (gen_rtx_SET (mem, reg));
if (frame_related_p)
RTX_FRAME_RELATED_P (insn) = 1;
@@ -1209,9 +1209,9 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
is going to be permanent in the function is frame_pointer_needed. */
add_reg_note (insn, REG_CFA_ADJUST_CFA,
- gen_rtx_SET (VOIDmode, (frame_pointer_needed
- ? frame_pointer_rtx
- : stack_pointer_rtx),
+ gen_rtx_SET ((frame_pointer_needed
+ ? frame_pointer_rtx
+ : stack_pointer_rtx),
plus_constant (Pmode, stack_pointer_rtx,
-(size + live_seq))));
@@ -1229,7 +1229,7 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
m = gen_rtx_MEM (QImode, plus_constant (Pmode, stack_pointer_rtx,
offset));
r = gen_rtx_REG (QImode, reg);
- add_reg_note (insn, REG_CFA_OFFSET, gen_rtx_SET (VOIDmode, m, r));
+ add_reg_note (insn, REG_CFA_OFFSET, gen_rtx_SET (m, r));
}
cfun->machine->stack_usage += size + live_seq;
@@ -1341,7 +1341,7 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
{
RTX_FRAME_RELATED_P (insn) = 1;
add_reg_note (insn, REG_CFA_ADJUST_CFA,
- gen_rtx_SET (VOIDmode, fp, stack_pointer_rtx));
+ gen_rtx_SET (fp, stack_pointer_rtx));
}
insn = emit_move_insn (my_fp, plus_constant (GET_MODE (my_fp),
@@ -1351,9 +1351,8 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
{
RTX_FRAME_RELATED_P (insn) = 1;
add_reg_note (insn, REG_CFA_ADJUST_CFA,
- gen_rtx_SET (VOIDmode, fp,
- plus_constant (Pmode, fp,
- -size_cfa)));
+ gen_rtx_SET (fp, plus_constant (Pmode, fp,
+ -size_cfa)));
}
/* Copy to stack pointer. Note that since we've already
@@ -1379,7 +1378,7 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
{
RTX_FRAME_RELATED_P (insn) = 1;
add_reg_note (insn, REG_CFA_ADJUST_CFA,
- gen_rtx_SET (VOIDmode, stack_pointer_rtx,
+ gen_rtx_SET (stack_pointer_rtx,
plus_constant (Pmode,
stack_pointer_rtx,
-size_cfa)));
@@ -1404,7 +1403,7 @@ avr_prologue_setup_frame (HOST_WIDE_INT size, HARD_REG_SET set)
-size));
RTX_FRAME_RELATED_P (insn) = 1;
add_reg_note (insn, REG_CFA_ADJUST_CFA,
- gen_rtx_SET (VOIDmode, stack_pointer_rtx,
+ gen_rtx_SET (stack_pointer_rtx,
plus_constant (Pmode,
stack_pointer_rtx,
-size_cfa)));
@@ -1574,7 +1573,7 @@ emit_pop_byte (unsigned regno)
mem = gen_frame_mem (QImode, mem);
reg = gen_rtx_REG (QImode, regno);
- emit_insn (gen_rtx_SET (VOIDmode, reg, mem));
+ emit_insn (gen_rtx_SET (reg, mem));
}
/* Output RTL epilogue. */
@@ -8473,7 +8472,7 @@ avr_out_round (rtx_insn *insn ATTRIBUTE_UNUSED, rtx *xop, int *plen)
xsrc = SIGNED_FIXED_POINT_MODE_P (mode)
? gen_rtx_SS_PLUS (mode, xop[1], xadd)
: gen_rtx_US_PLUS (mode, xop[1], xadd);
- xpattern = gen_rtx_SET (VOIDmode, xop[0], xsrc);
+ xpattern = gen_rtx_SET (xop[0], xsrc);
op[0] = xop[0];
op[1] = xop[1];
@@ -8490,7 +8489,7 @@ avr_out_round (rtx_insn *insn ATTRIBUTE_UNUSED, rtx *xop, int *plen)
rtx xreg = simplify_gen_subreg (imode, xop[0], mode, 0);
rtx xmask = immed_wide_int_const (-wi_add - wi_add, imode);
- xpattern = gen_rtx_SET (VOIDmode, xreg, gen_rtx_AND (imode, xreg, xmask));
+ xpattern = gen_rtx_SET (xreg, gen_rtx_AND (imode, xreg, xmask));
op[0] = xreg;
op[1] = xreg;