This is the mail archive of the
mailing list for the GCC project.
Re: [patch] tree-vrp.c: Avoid VR_ANTI_RANGE in a binary expression.
On Wed, Jun 22, 2005 at 11:30:09AM -0400, Andrew Pinski wrote:
> It is also MINUS_EXPR too.
It's the same handler.
> Wrong, this is also miscompiled as unsigned overflow is defined:
> unsigned int f(unsigned char a, unsigned char b)
Ah, quite right. Kazu, in that case, put the check in the
original place and add the condition along the lines of:
if (flag_wrapv || UNSIGNED_TYPE_P (TREE_TYPE ...))