------- Comment #1 from pinskia at gcc dot gnu dot org 2007-12-13 19:36 ------- This is not a bug, signed overflow is undefined so optimizing away this case is correct as a positive + positive is always positive.
Use -fwarpv or what ever the strict overflow option is. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34454