(layout_type, case INTEGER_TYPE): Properly test for nonnegative lower

bound.

From-SVN: r6803
This commit is contained in:
Richard Kenner 1994-03-17 06:02:16 -05:00
parent 2109bb54ef
commit e2a77f994d
1 changed files with 2 additions and 1 deletions

View 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),