summaryrefslogtreecommitdiff
path: root/gcc/valtrack.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-09-09 13:06:43 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2013-09-09 13:06:43 +0000
commit4789c0cef392722e1c084eba900c0c469fba3bc1 (patch)
treeb56dbab169263ce9ad963b7070c7c0593dd51aea /gcc/valtrack.c
parenta811f7cbad669cb3398ada5fd29cea19f7dff1d3 (diff)
downloadgcc-4789c0cef392722e1c084eba900c0c469fba3bc1.tar.gz
alias.c (addr_side_effect_eval): Use gen_int_mode with the mode of the associated gen_rtx_* call.
gcc/ * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode of the associated gen_rtx_* call. * caller-save.c (init_caller_save): Likewise. * combine.c (find_split_point, make_extraction): Likewise. (make_compound_operation): Likewise. * dwarf2out.c (mem_loc_descriptor): Likewise. * explow.c (plus_constant, probe_stack_range): Likewise. * expmed.c (expand_mult_const): Likewise. * expr.c (emit_single_push_insn_1, do_tablejump): Likewise. * reload1.c (init_reload): Likewise. * valtrack.c (cleanup_auto_inc_dec): Likewise. * var-tracking.c (adjust_mems): Likewise. * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT rather than gen_rtx_fmt_ee. From-SVN: r202391
Diffstat (limited to 'gcc/valtrack.c')
-rw-r--r--gcc/valtrack.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/valtrack.c b/gcc/valtrack.c
index 997f68b5089..c61c11704e4 100644
--- a/gcc/valtrack.c
+++ b/gcc/valtrack.c
@@ -93,9 +93,10 @@ cleanup_auto_inc_dec (rtx src, enum machine_mode mem_mode ATTRIBUTE_UNUSED)
gcc_assert (mem_mode != VOIDmode && mem_mode != BLKmode);
return gen_rtx_PLUS (GET_MODE (x),
cleanup_auto_inc_dec (XEXP (x, 0), mem_mode),
- GEN_INT (code == PRE_INC
- ? GET_MODE_SIZE (mem_mode)
- : -GET_MODE_SIZE (mem_mode)));
+ gen_int_mode (code == PRE_INC
+ ? GET_MODE_SIZE (mem_mode)
+ : -GET_MODE_SIZE (mem_mode),
+ GET_MODE (x)));
case POST_INC:
case POST_DEC: