Vincent Lefevre writes ("Re: Having fun with the following C code (UB)"): > On 2014-04-10 11:48:44 +0000, Thorsten Glaser wrote: > > And GCC is a repeat offender which actually does do that. > > If you don't like that, you should use the -fwrapv option. Sadly that doesn't deal with all of these malicious optimisations. But it is a good start. Personally I think we should compile the whole distro (or at least most of it) with -fwrapv. Ian.