From 7e50ecaeb4fe7c6b78cf5bbd8709ec113231235e Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Mon, 16 Jan 2006 14:26:32 +0000 Subject: * fold-const.c (fold_minmax): New static function. (fold_binary) : Call it. : 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 --- gcc/stor-layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/stor-layout.c') 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, -- cgit v1.2.1