diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-06-28 10:16:03 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-06-28 06:16:03 -0400 |
commit | eeb35b4552717ded7a8e006854be6766bb6237c4 (patch) | |
tree | 77bfa163e04d00aa941a0bb95c24b4d8e77db81c /gcc/expr.c | |
parent | b9b2c339633c658046d481aa0db0d3c1008a4595 (diff) | |
download | gcc-eeb35b4552717ded7a8e006854be6766bb6237c4.zip gcc-eeb35b4552717ded7a8e006854be6766bb6237c4.tar.gz gcc-eeb35b4552717ded7a8e006854be6766bb6237c4.tar.bz2 |
expr.c (expand_assignment): When have varying-length object, make MEM a BLKmode.
* expr.c (expand_assignment): When have varying-length object,
make MEM a BLKmode.
(expand_expr, case ADDR_EXPR): Use SAVE_EXPR_RTL after putting
SAVE_EXPR stack in case we had a SUBREG.
From-SVN: r43637
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3810,7 +3810,7 @@ expand_assignment (to, from, want_value, suggest_reg) unsigned int from_align; rtx from_rtx = expand_expr_unaligned (from, &from_align); rtx inner_to_rtx - = change_address (to_rtx, VOIDmode, + = change_address (to_rtx, BLKmode, plus_constant (XEXP (to_rtx, 0), bitpos / BITS_PER_UNIT)); @@ -7039,7 +7039,10 @@ expand_expr (exp, target, tmode, modifier) /* If the operand is a SAVE_EXPR, we can deal with this by forcing the SAVE_EXPR into memory. */ if (TREE_CODE (TREE_OPERAND (exp, 0)) == SAVE_EXPR) - put_var_into_stack (TREE_OPERAND (exp, 0)); + { + put_var_into_stack (TREE_OPERAND (exp, 0)); + op0 = SAVE_EXPR_RTL (TREE_OPERAND (exp, 0)); + } else { tree nt |