aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-03-17 06:02:16 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-03-17 06:02:16 -0500
commite2a77f994d4057b7a9a240b76e5a78df155707ab (patch)
tree30d971d1893d1b8bbe2a61737637b2870fcd0f4c
parent2109bb54ef1a2ec282aedece39969f0d2729aa48 (diff)
downloadgcc-e2a77f994d4057b7a9a240b76e5a78df155707ab.zip
gcc-e2a77f994d4057b7a9a240b76e5a78df155707ab.tar.gz
gcc-e2a77f994d4057b7a9a240b76e5a78df155707ab.tar.bz2
(layout_type, case INTEGER_TYPE): Properly test for nonnegative lower
bound. From-SVN: r6803
-rw-r--r--gcc/stor-layout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 3c2fc8f..b09f320 100644
--- a/gcc/stor-layout.c
+++ b/gcc/stor-layout.c
@@ -671,7 +671,8 @@ layout_type (type)
case INTEGER_TYPE:
case ENUMERAL_TYPE:
- if (TREE_INT_CST_HIGH (TYPE_MIN_VALUE (type)) >= 0)
+ if (TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST
+ && tree_int_cst_sgn (TYPE_MIN_VALUE (type)) >= 0)
TREE_UNSIGNED (type) = 1;
TYPE_MODE (type) = smallest_mode_for_size (TYPE_PRECISION (type),