From d5518ed987a5cdbf23d5c3d9294319f532f6678a Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Sun, 27 Sep 2009 12:36:43 +0000 Subject: * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR. (extract_muldiv_1) : Swap operands if necessary. * stor-layout.c (layout_type) : Do not take the maximum of the length and zero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152217 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/stor-layout.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'gcc/stor-layout.c') diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 18360bb422d..f34f2abbae1 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1968,15 +1968,6 @@ layout_type (tree type) TREE_TYPE (lb), ub, lb))); - /* If neither bound is a constant and sizetype is signed, make - sure the size is never negative. We should really do this - if *either* bound is non-constant, but this is the best - compromise between C and Ada. */ - if (!TYPE_UNSIGNED (sizetype) - && TREE_CODE (TYPE_MIN_VALUE (index)) != INTEGER_CST - && TREE_CODE (TYPE_MAX_VALUE (index)) != INTEGER_CST) - length = size_binop (MAX_EXPR, length, size_zero_node); - TYPE_SIZE (type) = size_binop (MULT_EXPR, element_size, fold_convert (bitsizetype, length)); -- cgit v1.2.1