(layout_type, case INTEGER_TYPE): Properly test for nonnegative lower
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 17 Mar 1994 11:02:16 +0000 (06:02 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 17 Mar 1994 11:02:16 +0000 (06:02 -0500)
bound.

From-SVN: r6803

gcc/stor-layout.c

index 3c2fc8fc9127639e3efb800a9968621d1b15bfa7..b09f320e96671df5512e45b0e6197814d407cedd 100644 (file)
@@ -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),