From: Richard Kenner Date: Thu, 17 Mar 1994 11:02:16 +0000 (-0500) Subject: (layout_type, case INTEGER_TYPE): Properly test for nonnegative lower X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e2a77f994d4057b7a9a240b76e5a78df155707ab;p=gcc.git (layout_type, case INTEGER_TYPE): Properly test for nonnegative lower bound. From-SVN: r6803 --- 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),