aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/stor-layout.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bc62c67..1f8b547 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-18 Richard Henderson <rth@redhat.com>
+
+ * stor-layout.c (layout_decl): Use unshare_expr, not unsave_expr.
+
2004-12-18 Zdenek Dvorak <dvorakz@suse.cz>
PR rtl-optimization/19001
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index b2f73f0..6b78fa6 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -325,8 +325,8 @@ layout_decl (tree decl, unsigned int known_align)
if (DECL_SIZE (decl) == 0)
{
- DECL_SIZE (decl) = unsave_expr (TYPE_SIZE (type));
- DECL_SIZE_UNIT (decl) = unsave_expr (TYPE_SIZE_UNIT (type));
+ DECL_SIZE (decl) = unshare_expr (TYPE_SIZE (type));
+ DECL_SIZE_UNIT (decl) = unshare_expr (TYPE_SIZE_UNIT (type));
}
else if (DECL_SIZE_UNIT (decl) == 0)
DECL_SIZE_UNIT (decl)