This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30475] assert(int+100 > int) optimized away
- From: "felix-gcc at fefe dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jan 2007 15:23:57 -0000
- Subject: [Bug c/30475] assert(int+100 > int) optimized away
- References: <bug-30475-3511@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #28 from felix-gcc at fefe dot de 2007-01-18 15:23 -------
Mhh, so I wondered, how can it be that the code is exactly as fast. So I
disassembled the binary. You know what? IT'S THE EXACT SAME CODE.
So, my conjecture is, again: your "optimization" does exactly NO good
whatsoever, it just breaks code that tries to defend against integer overflows.
Please remove it. Now.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30475