This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31075] 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization
- From: "sdirkse at gams dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Mar 2007 22:52:06 -0000
- Subject: [Bug c/31075] 2's complement arithmetic (LLONG_MIN-1) works differently with and without optimization
- References: <bug-31075-14147@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from sdirkse at gams dot com 2007-03-07 22:52 -------
Thanks for telling me about the -fwrapv flag, that's good to know - I should
have double-checked my K&R 2nd Edition before sending the bug. But I tried
running the above example with the addition of the -fwrapv flag, and it didn't
change the behavior one bit.
Also, I tried a similar example with 32- instead of 64-bit types. It behaved
similarly.
So, can we call this a bug now?
--
sdirkse at gams dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31075