This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/26824] optimisation bug with -0x80000000
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2006 15:15:01 -0000
- Subject: [Bug c/26824] optimisation bug with -0x80000000
- References: <bug-26824-6341@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from pinskia at gcc dot gnu dot org 2006-03-23 15:15 -------
(In reply to comment #5)
> I see your point, but I still think there's a bug. Let me change the code
> slightly:
The code is still undefined, as you are comparing an overflowed variable to
something.
-x is still undefined for x being 0x80000000 as it overflows and overflow
signed integer is undefined runtime code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26824