Commit db3ec607 by Richard Kenner

(expand_assignment): Fix alignment parm in emit_block_move.

From-SVN: r10781
parent 058e0bb9
...@@ -2588,10 +2588,8 @@ expand_assignment (to, from, want_value, suggest_reg) ...@@ -2588,10 +2588,8 @@ expand_assignment (to, from, want_value, suggest_reg)
to_rtx = expand_expr (to, NULL_RTX, VOIDmode, 0); to_rtx = expand_expr (to, NULL_RTX, VOIDmode, 0);
if (GET_MODE (to_rtx) == BLKmode) if (GET_MODE (to_rtx) == BLKmode)
{ emit_block_move (to_rtx, value, expr_size (from),
int align = MIN (TYPE_ALIGN (TREE_TYPE (from)), BITS_PER_WORD); TYPE_ALIGN (TREE_TYPE (from)) / BITS_PER_WORD);
emit_block_move (to_rtx, value, expr_size (from), align);
}
else else
emit_move_insn (to_rtx, value); emit_move_insn (to_rtx, value);
preserve_temp_slots (to_rtx); preserve_temp_slots (to_rtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment