[Bug middle-end/26824] optimisation bug with -0x80000000

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 23 14:12:00 GMT 2006



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-23 14:12 -------
-0x80000000 is going to overflow and for signed integers overflow is undefined.
 If you want signed integers to be defined to be wrapping use -fwrapv.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c                           |middle-end
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26824



More information about the Gcc-bugs mailing list