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: [PATCH] rs6000: Fix signed integer overflows


On Wed, Nov 19, 2014 at 04:41:49PM +0100, Marek Polacek wrote:
> > -  HOST_WIDE_INT c, lsb;
> > +  unsigned HOST_WIDE_INT c, lsb;
> >  
> >    c = INTVAL (op);
> 
> Shouldn't you use UINTVAL then?

That doesn't really matter here.  It looks a bit cleaner, of course.

I wouldn't spend too much time on mask*operand, I'll replace them
wholesale if all plans fall in place...


Segher


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