[Bug c/39311] Optimization breaks existing overflow checks
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 26 14:28:00 GMT 2009
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-26 14:28 -------
In C signed overflow invokes undefined behavior so the compiler assumes signed
operations do not overflow. Use -fwrapv or -fno-strict-overflow if you like
to program in DWIM-C.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39311
More information about the Gcc-bugs
mailing list