summaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-21 19:27:08 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-21 19:27:08 +0000
commit676a6eea067a3d9afb0ae0108aa7ea8e32ee134b (patch)
tree47af0a2aac50780b1933000e0ecc9465871ee8e0 /gcc/stor-layout.c
parente5dd2d5250fc969661ed72df4e91350e17b88acd (diff)
downloadgcc-676a6eea067a3d9afb0ae0108aa7ea8e32ee134b.tar.gz
* gimplify.c (eval_save_expr): New.
(gimplify_one_sizepos): Use it. * stor-layout.c (layout_type): Unshare TYPE_MIN/MAX_VALUE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92468 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 7069ad9b2ec..13fdb3cf14c 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -1644,8 +1644,8 @@ layout_type (tree type)
if (index && TYPE_MAX_VALUE (index) && TYPE_MIN_VALUE (index)
&& TYPE_SIZE (element))
{
- tree ub = TYPE_MAX_VALUE (index);
- tree lb = TYPE_MIN_VALUE (index);
+ tree ub = unshare_expr (TYPE_MAX_VALUE (index));
+ tree lb = unshare_expr (TYPE_MIN_VALUE (index));
tree length;
tree element_size;