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