From: Richard Stallman Date: Thu, 11 Mar 1993 08:18:16 +0000 (+0000) Subject: (const_binop): When evaluating a shift, ignore X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88ece8db619050933051cfd6ef3f42ea5eba16a1;p=gcc.git (const_binop): When evaluating a shift, ignore overflows generated by force_fit_type. From-SVN: r3700 --- diff --git a/gcc/fold-const.c b/gcc/fold-const.c index fe9b72dd33c..ec04f44ae65 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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;