On Fri, Sep 02, 2016 at 03:51:49PM +0000, Bernd Edlinger wrote: > Hi, > > > + r += !a == ~b; > > + r += !a == ~(int) b; > > I don't understand why ~b should not be warned at -Wall. Yeah, there was an RFE for this but I'm not finding it.
> Frankly I don't even understand why the above statements are > completely optimized away. > > r += !a == ~b; > is optimized away, but > > b = ~b; > r += !a == b; > > Is not. Why? Something in ccp I suppose. But I didn't investigate closely because it's not really relevant to this patch, sorry. Marek