aboutsummaryrefslogtreecommitdiff
path: root/gcc/stor-layout.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2009-09-27 12:36:43 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2009-09-27 12:36:43 +0000
commitffaf6f258a248a8c90267455c0e681ac1fb5345c (patch)
tree66dacc33dc02bdfc687cd79b0deb3eb58a538bdd /gcc/stor-layout.c
parent464778c074aa55ea8d41713fc160a48c9e0df305 (diff)
downloadgcc-ffaf6f258a248a8c90267455c0e681ac1fb5345c.zip
gcc-ffaf6f258a248a8c90267455c0e681ac1fb5345c.tar.gz
gcc-ffaf6f258a248a8c90267455c0e681ac1fb5345c.tar.bz2
fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
* fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR. (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary. * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum of the length and zero. From-SVN: r152217
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r--gcc/stor-layout.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 18360bb..f34f2ab 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));