This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53857] Possible problem with arithmetic overflow in optimizer
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Jul 2012 18:03:26 +0000
- Subject: [Bug c/53857] Possible problem with arithmetic overflow in optimizer
- Auto-submitted: auto-generated
- References: <bug-53857-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53857
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> 2012-07-04 18:03:26 UTC ---
>some_arithmetic_operations_on_signed_integers_with_overflow
Once overflow happens the result is undefined.
>What is suspicious compilation behaves in very unpredictable way.
No it is not, according to the rules of C. As once an undefined behavior has
happen, anything goes aftwards