aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-11-18 21:44:26 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-11-18 16:44:26 -0500
commite27cc84b10f23c7cf2de7f60cbb785bfd7bb38e7 (patch)
tree82313b1e6052cacbb86ad6de06be8d9c7fc6164b /gcc/expr.c
parent656855746dc2f0ea6069b30f3df94c80debf5901 (diff)
downloadgcc-e27cc84b10f23c7cf2de7f60cbb785bfd7bb38e7.zip
gcc-e27cc84b10f23c7cf2de7f60cbb785bfd7bb38e7.tar.gz
gcc-e27cc84b10f23c7cf2de7f60cbb785bfd7bb38e7.tar.bz2
expr.c (expand_expr, [...]): Update alignment of DECL_RTL after re-laying out decl in incomplete case.
* expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL after re-laying out decl in incomplete case. (expand_expr, case ADDR_EXPR): Fix typo in copy case. From-SVN: r47153
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 5d933b2..324f5cd 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6289,6 +6289,7 @@ expand_expr (exp, target, tmode, modifier)
{
layout_decl (exp, 0);
PUT_MODE (DECL_RTL (exp), DECL_MODE (exp));
+ set_mem_align (DECL_RTL (exp), DECL_ALIGN (exp));
}
/* Although static-storage variables start off initialized, according to
@@ -8674,7 +8675,7 @@ expand_expr (exp, target, tmode, modifier)
= assign_stack_temp_for_type
(TYPE_MODE (inner_type),
MEM_SIZE (op0) ? INTVAL (MEM_SIZE (op0))
- : int_size_in_bytes (TREE_TYPE (inner_type)),
+ : int_size_in_bytes (inner_type),
1, build_qualified_type (inner_type,
(TYPE_QUALS (inner_type)
| TYPE_QUAL_CONST)));