Commit 1a96dc46 by Richard Kenner Committed by Richard Kenner

* stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.

From-SVN: r65899
parent c3cdeef4
...@@ -56,6 +56,8 @@ ...@@ -56,6 +56,8 @@
2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
* expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
before clearing. before clearing.
......
...@@ -419,7 +419,7 @@ layout_decl (decl, known_align) ...@@ -419,7 +419,7 @@ layout_decl (decl, known_align)
DECL_SIZE (decl) = TYPE_SIZE (type); DECL_SIZE (decl) = TYPE_SIZE (type);
DECL_SIZE_UNIT (decl) = TYPE_SIZE_UNIT (type); DECL_SIZE_UNIT (decl) = TYPE_SIZE_UNIT (type);
} }
else else if (DECL_SIZE_UNIT (decl) == 0)
DECL_SIZE_UNIT (decl) DECL_SIZE_UNIT (decl)
= convert (sizetype, size_binop (CEIL_DIV_EXPR, DECL_SIZE (decl), = convert (sizetype, size_binop (CEIL_DIV_EXPR, DECL_SIZE (decl),
bitsize_unit_node)); bitsize_unit_node));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment