Commit e02b9957 by Doug Evans

(get_narrower): Preserve unsignedness when bitschange == 0.

From-SVN: r4842
parent ccc98036
......@@ -3162,7 +3162,14 @@ get_narrower (op, unsignedp_ptr)
break;
first = 0;
}
/* A change in nominal type can always be stripped. */
else /* bitschange == 0 */
{
/* A change in nominal type can always be stripped, but we must
preserve the unsignedness. */
if (first)
uns = TREE_UNSIGNED (TREE_TYPE (op));
first = 0;
}
win = op;
}
......
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