[Bug c/49820] Explicit check for integer negative after abs optimized away
schwab@linux-m68k.org
gcc-bugzilla@gcc.gnu.org
Sat Jul 23 07:20:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49820
Andreas Schwab <schwab@linux-m68k.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2011-07-23 07:20:20 UTC ---
Integer overflow is undefined. You have to check before the fact, or compile
with -fwrapv.
More information about the Gcc-bugs
mailing list