This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/26824] optimisation bug with -0x80000000



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]