This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix PR 22018


On Wed, Jun 15, 2005 at 07:31:24AM -0400, Diego Novillo wrote:
> +   if (flag_wrapv)
> +     return int_const_binop (code, val1, val2, 0);

I don't believe this is correct with TREE_OVERFLOW.

In particular, lets say we have the ranges

  [0,30678313] * [1073741789,1073741789]

If you just look at the products of the end points, you'll think
the resulting range is just [0,869], which is clearly incorrect.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]