This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/48793] Optimization -O2 Incorrectly Removes Logic


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]