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
This commit is contained in:
Richard Kenner 2001-11-18 21:44:26 +00:00 committed by Richard Kenner
parent 656855746d
commit e27cc84b10
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sun Nov 18 16:47:00 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* 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 <jsm28@cam.ac.uk>
* doc/install-old.texi: Move some sections out to ...

View file

@ -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)));