Commit 88ece8db by Richard Stallman

(const_binop): When evaluating a shift, ignore

overflows generated by force_fit_type.

From-SVN: r3700
parent db27aeec
......@@ -1095,7 +1095,12 @@ const_binop (code, arg1, arg2, notrunc)
&low, &hi,
!uns);
t = build_int_2 (low, hi);
break;
TREE_TYPE (t) = TREE_TYPE (arg1);
if (!notrunc)
force_fit_type (t, 0);
TREE_CONSTANT_OVERFLOW (t)
= TREE_CONSTANT_OVERFLOW (arg1) | TREE_CONSTANT_OVERFLOW (arg2);
return t;
case RROTATE_EXPR:
int2l = - int2l;
......
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