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]

Re: [patch] Integer overflow when folding constants


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~


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