summaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-11-08 17:40:11 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-11-08 17:40:11 -0500
commitb61b64100a3be5e98039b4f8dc8cd192a17b0da0 (patch)
tree18557124b43a8449972c0b46ab9bf989162001ea /gcc/expr.c
parent4e97601f107e6597ef2da0fadf5624137a1d50f5 (diff)
downloadgcc-b61b64100a3be5e98039b4f8dc8cd192a17b0da0.tar.gz
(expand_assignment): Remove bogus resetting of alignment to inner alignment.
(expand_expr, case COMPONENT_REF): Likewise. From-SVN: r13114
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 09aeeeb2d5f..60501a55962 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -2807,14 +2807,6 @@ expand_assignment (to, from, want_value, suggest_reg)
to_rtx = change_address (to_rtx, VOIDmode,
gen_rtx (PLUS, ptr_mode, XEXP (to_rtx, 0),
force_reg (ptr_mode, offset_rtx)));
- /* If we have a variable offset, the known alignment
- is only that of the innermost structure containing the field.
- (Actually, we could sometimes do better by using the
- align of an element of the innermost array, but no need.) */
- if (TREE_CODE (to) == COMPONENT_REF
- || TREE_CODE (to) == BIT_FIELD_REF)
- alignment
- = TYPE_ALIGN (TREE_TYPE (TREE_OPERAND (to, 0))) / BITS_PER_UNIT;
}
if (volatilep)
{
@@ -5508,14 +5500,6 @@ expand_expr (exp, target, tmode, modifier)
op0 = change_address (op0, VOIDmode,
gen_rtx (PLUS, ptr_mode, XEXP (op0, 0),
force_reg (ptr_mode, offset_rtx)));
- /* If we have a variable offset, the known alignment
- is only that of the innermost structure containing the field.
- (Actually, we could sometimes do better by using the
- size of an element of the innermost array, but no need.) */
- if (TREE_CODE (exp) == COMPONENT_REF
- || TREE_CODE (exp) == BIT_FIELD_REF)
- alignment = (TYPE_ALIGN (TREE_TYPE (TREE_OPERAND (exp, 0)))
- / BITS_PER_UNIT);
}
/* Don't forget about volatility even if this is a bitfield. */