------- Comment #7 from pinskia at gcc dot gnu dot org 2008-01-18 01:46 ------- (In reply to comment #6) > Did you mean CFLAGS='-O2 -fwrapv -Wstrict-overflow' or, rather, > CFLAGS='-O2 -Wstrict-overflow' ?
The latter, you will only get the warning if -fwrapv is off as it warns when the optimizers are optimizing based on the undefinedness. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34841