------- Comment #11 from dcb314 at hotmail dot com 2006-12-19 22:03 ------- (In reply to comment #10) > Again use -fwrapv and forget about it.
Sigh. This implies using -fwrapv everywhere. Still relatively expensive - I still don't know where the compiler is doing the new behaviour. For an additional data point, I tried out the Intel C compiler at optimisation level -O2 *and* -O3 on the demonstration source code. Clearly, different compiler writers have different tradeoffs. However, Intel produced the old GNU behaviour at both -O2 *and* -O3. Of course, one compiler doing it one way does not imply all compilers have to do it that way. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30245