(layout_type, case INTEGER_TYPE): Properly test for nonnegative lower
bound. From-SVN: r6803
This commit is contained in:
parent
2109bb54ef
commit
e2a77f994d
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue