https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111405

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Signed integer overflow is undefined behavior. 

Use -fwrapv or unsigned to do the addition to get the behavior you want.

Reply via email to