summaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-16 14:26:32 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2006-01-16 14:26:32 +0000
commit7e50ecaeb4fe7c6b78cf5bbd8709ec113231235e (patch)
tree10316cdc614740e5e71d0548c7f3e20c0d1c8902 /gcc/stor-layout.c
parentc78f0f8766230b43640828a4ec673fd5f7d7d9c2 (diff)
downloadgcc-7e50ecaeb4fe7c6b78cf5bbd8709ec113231235e.tar.gz
* fold-const.c (fold_minmax): New static function.
(fold_binary) <MIN_EXPR>: Call it. <MAX_EXPR>: Likewise. * stor-layout.c (place_field): Use DECL_SIZE consistently in the computation of the new record size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109747 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 7db35673d57..cb57cb378b8 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -1222,8 +1222,8 @@ place_field (record_layout_info rli, tree field)
is printed in finish_struct. */
if (DECL_SIZE (field) == 0)
/* Do nothing. */;
- else if (TREE_CODE (DECL_SIZE_UNIT (field)) != INTEGER_CST
- || TREE_CONSTANT_OVERFLOW (DECL_SIZE_UNIT (field)))
+ else if (TREE_CODE (DECL_SIZE (field)) != INTEGER_CST
+ || TREE_CONSTANT_OVERFLOW (DECL_SIZE (field)))
{
rli->offset
= size_binop (PLUS_EXPR, rli->offset,