aboutsummaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-04-29 14:20:41 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-04-29 14:20:41 +0000
commiteb6c3df1a0e34edc7a243c781a1b8842e3fc285c (patch)
treef442091bcb3d922e2508780f3c19d3d70034b779 /gcc/calls.c
parent9f616812d9cb9a651fb4636a3ec499c1b87995f3 (diff)
downloadgcc-eb6c3df1a0e34edc7a243c781a1b8842e3fc285c.zip
gcc-eb6c3df1a0e34edc7a243c781a1b8842e3fc285c.tar.gz
gcc-eb6c3df1a0e34edc7a243c781a1b8842e3fc285c.tar.bz2
expr.h (expand_shift): Rename to ...
2011-04-29 Richard Guenther <rguenther@suse.de> * expr.h (expand_shift): Rename to ... (expand_variable_shift): ... this. (expand_shift): Take a constant shift amount. * expmed.c (expand_shift): Rename to ... (expand_variable_shift): ... this. (expand_shift): New wrapper around expand_variable_shift. * expr.c (convert_move, emit_group_load_1, emit_group_store, optimize_bitfield_assignment_op, store_field, expand_expr_real_2, expand_expr_real_1, reduce_to_bit_field_precision): Adjust. * expmed.c (store_fixed_bit_field, extract_bit_field_1, extract_fixed_bit_field, extract_split_bit_field, expand_mult_const, expand_mult, expand_widening_mult, expand_mult_highpart_adjust, extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore, emit_store_flag_1, emit_store_flag): Likewise. * builtins.c (expand_builtin_signbit): Likewise. * calls.c (load_register_parameters): Likewise. * function.c (assign_parm_setup_block): Likewise. * lower-subreg.c (resolve_shift_zext): Likewise. * optabs.c (widen_bswap, expand_abs_nojump, expand_one_cmpl_abs_nojump, expand_float): Likewise. * spu/spu.c (spu_expand_extv): Likewise. * sparc/sparc.c (sparc32_initialize_trampoline): Likewise. From-SVN: r173157
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index bd7c3a6..98f3009 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -1668,9 +1668,7 @@ load_register_parameters (struct arg_data *args, int num_actuals,
call only uses SIZE bytes at the msb end, but it doesn't
seem worth generating rtl to say that. */
reg = gen_rtx_REG (word_mode, REGNO (reg));
- x = expand_shift (LSHIFT_EXPR, word_mode, reg,
- build_int_cst (NULL_TREE, shift),
- reg, 1);
+ x = expand_shift (LSHIFT_EXPR, word_mode, reg, shift, reg, 1);
if (x != reg)
emit_move_insn (reg, x);
}
@@ -1714,9 +1712,7 @@ load_register_parameters (struct arg_data *args, int num_actuals,
: LSHIFT_EXPR;
emit_move_insn (x, tem);
- x = expand_shift (dir, word_mode, x,
- build_int_cst (NULL_TREE, shift),
- ri, 1);
+ x = expand_shift (dir, word_mode, x, shift, ri, 1);
if (x != ri)
emit_move_insn (ri, x);
}