This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Integer overflow when folding constants
- To: Diego Novillo <dnovillo at redhat dot com>
- Subject: Re: [patch] Integer overflow when folding constants
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 4 Apr 2001 15:32:24 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010404162047.A32080@tornado.cygnus.com>
On Wed, Apr 04, 2001 at 04:20:47PM -0400, Diego Novillo wrote:
> ! || (arg0s == (HOST_WIDE_INT) 1 << (HOST_BITS_PER_WIDE_INT - 1)
> ! && arg1s == (HOST_WIDE_INT) (-1)))
> return 0;
Casting -1 not needed. Otherwise ok.
r~