[Bug c/47670] Gcc 4.5.1 inconsistent optimisation of loop with mixed 32bit and 64bit arithmetic

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 9 21:14:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47670

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-09 21:13:46 UTC ---
Singed overflow invokes undefined behavior, use

count += ((long long)i) * 0x40000000

instead.



More information about the Gcc-bugs mailing list