[Bug c/31075] 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 7 20:23:00 GMT 2007



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-03-07 20:23 -------
Signed integer overflow is undefined.  Either use unsigned or -fwrapv.


-- 

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=31075



More information about the Gcc-bugs mailing list