diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-05-07 16:58:46 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-05-07 16:58:46 +0000 |
commit | f7df4a840c47845783129279750f1c214e74e7d1 (patch) | |
tree | d586b7005253121ffef57e4f1d75d48de1056334 /gcc/var-tracking.c | |
parent | d5449acf6b952794ecfacfbdbb8291f37dfd57d1 (diff) | |
download | gcc-f7df4a840c47845783129279750f1c214e74e7d1.zip gcc-f7df4a840c47845783129279750f1c214e74e7d1.tar.gz gcc-f7df4a840c47845783129279750f1c214e74e7d1.tar.bz2 |
rtl.h (always_void_p): New function.
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.
From-SVN: r222883
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r-- | gcc/var-tracking.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index 685fcc38c..460f6e7 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -1098,8 +1098,7 @@ adjust_mems (rtx loc, const_rtx old_rtx, void *data) tem = simplify_replace_fn_rtx (tem, old_rtx, adjust_mems, data); amd->store = store_save; amd->side_effects = alloc_EXPR_LIST (0, - gen_rtx_SET (VOIDmode, - XEXP (loc, 0), tem), + gen_rtx_SET (XEXP (loc, 0), tem), amd->side_effects); return addr; case PRE_MODIFY: @@ -1115,8 +1114,7 @@ adjust_mems (rtx loc, const_rtx old_rtx, void *data) adjust_mems, data); amd->store = store_save; amd->side_effects = alloc_EXPR_LIST (0, - gen_rtx_SET (VOIDmode, - XEXP (loc, 0), tem), + gen_rtx_SET (XEXP (loc, 0), tem), amd->side_effects); return addr; case SUBREG: @@ -1227,7 +1225,7 @@ adjust_insn (basic_block bb, rtx_insn *insn) FOR_EACH_VEC_SAFE_ELT (windowed_parm_regs, i, p) { XVECEXP (rtl, 0, i * 2) - = gen_rtx_SET (VOIDmode, p->incoming, p->outgoing); + = gen_rtx_SET (p->incoming, p->outgoing); /* Do not clobber the attached DECL, but only the REG. */ XVECEXP (rtl, 0, i * 2 + 1) = gen_rtx_CLOBBER (GET_MODE (p->outgoing), @@ -5883,7 +5881,7 @@ add_stores (rtx loc, const_rtx expr, void *cuip) && find_use_val (loc, mode, cui)) { gcc_checking_assert (type == MO_VAL_SET); - mo.u.loc = gen_rtx_SET (VOIDmode, loc, SET_SRC (expr)); + mo.u.loc = gen_rtx_SET (loc, SET_SRC (expr)); } } else @@ -5901,7 +5899,7 @@ add_stores (rtx loc, const_rtx expr, void *cuip) } else { - rtx xexpr = gen_rtx_SET (VOIDmode, loc, src); + rtx xexpr = gen_rtx_SET (loc, src); if (same_variable_part_p (src, REG_EXPR (loc), REG_OFFSET (loc))) { /* If this is an instruction copying (part of) a parameter @@ -5966,7 +5964,7 @@ add_stores (rtx loc, const_rtx expr, void *cuip) } else { - rtx xexpr = gen_rtx_SET (VOIDmode, loc, src); + rtx xexpr = gen_rtx_SET (loc, src); if (same_variable_part_p (SET_SRC (xexpr), MEM_EXPR (loc), INT_MEM_OFFSET (loc))) @@ -6065,7 +6063,7 @@ add_stores (rtx loc, const_rtx expr, void *cuip) } if (nloc && nloc != SET_SRC (mo.u.loc)) - oloc = gen_rtx_SET (GET_MODE (mo.u.loc), oloc, nloc); + oloc = gen_rtx_SET (oloc, nloc); else { if (oloc == SET_DEST (mo.u.loc)) |