From 3009877760fd7b23c6c92fb6f8613b0e90a59b14 Mon Sep 17 00:00:00 2001 From: kenner Date: Sun, 18 Nov 2001 21:44:26 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47153 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/expr.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index af43a7e3acb..21f179d9724 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Sun Nov 18 16:47:00 2001 Richard Kenner + + * 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. + 2001-11-18 Joseph S. Myers * doc/install-old.texi: Move some sections out to ... diff --git a/gcc/expr.c b/gcc/expr.c index 5d933b29543..324f5cd106c 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))); -- 2.11.0