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

sdirkse at gams dot com gcc-bugzilla@gcc.gnu.org
Wed Mar 7 23:10:00 GMT 2007



------- Comment #4 from sdirkse at gams dot com  2007-03-07 23:10 -------
DOH!  I wasn't running the executable compiled with -fwrapv.  Using the -fwrapv
flag does indeed make things work as I hoped and as documented.


-- 

sdirkse at gams dot com 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