From 1a96dc4634533d7691e4d369658b8c9cfc473a2a Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 21 Apr 2003 20:43:21 +0000 Subject: * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set. From-SVN: r65899 --- gcc/ChangeLog | 2 ++ gcc/stor-layout.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5d792e..9c52c0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -56,6 +56,8 @@ 2003-04-21 Richard Kenner + * 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 before clearing. diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 66067d6..dad514e 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -419,7 +419,7 @@ layout_decl (decl, known_align) DECL_SIZE (decl) = TYPE_SIZE (type); DECL_SIZE_UNIT (decl) = TYPE_SIZE_UNIT (type); } - else + else if (DECL_SIZE_UNIT (decl) == 0) DECL_SIZE_UNIT (decl) = convert (sizetype, size_binop (CEIL_DIV_EXPR, DECL_SIZE (decl), bitsize_unit_node)); -- cgit v1.1