[Bug c/48793] Optimization -O2 Incorrectly Removes Logic
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 27 23:01:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48793
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-04-27 22:59:51 UTC ---
(In reply to comment #2)
> myInteger = -myInteger;
>
> is undefined for the integer MIN_INT?
The above is undefined for the value of MIN_INT. As there is an overflow as
-MIN_INT is not representable in the type int.
More information about the Gcc-bugs
mailing list