[Bug c/30475] assert(int+100 > int) optimized away

felix-gcc at fefe dot de gcc-bugzilla@gcc.gnu.org
Thu Jan 18 15:24:00 GMT 2007



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



More information about the Gcc-bugs mailing list