[Bug c/50922] infinite loop when optimized
pfister at pci dot uzh.ch
gcc-bugzilla@gcc.gnu.org
Mon Oct 31 19:58:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50922
--- Comment #7 from Rolf Pfister <pfister at pci dot uzh.ch> 2011-10-31 19:58:07 UTC ---
I wrote:
> long x=2147483647;
> ulong c;
> for(c=0;c<2147483648UL;c++)
> {
> lcdSendData(x--);
> }
I tried this new variant with "gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1"
With this version it works correctly. Also with avr-gcc this variant
works correctly.
So the problem seems really to be solved.
Rolf
More information about the Gcc-bugs
mailing list