Commit e2a77f99 by Richard Kenner

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

bound.

From-SVN: r6803
parent 2109bb54
......@@ -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),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment