From e2a77f994d4057b7a9a240b76e5a78df155707ab Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 17 Mar 1994 06:02:16 -0500 Subject: [PATCH] (layout_type, case INTEGER_TYPE): Properly test for nonnegative lower bound. From-SVN: r6803 --- gcc/stor-layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 3c2fc8fc912..b09f320e966 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), -- 2.30.2