|Subject:||[avr-gcc-list] new AVR-GCC bug|
|Date:||Wed, 21 Feb 2001 22:26:44 +0100|
I am happy to see that the SRAM allocation bug is fixed in the latest avr-gcc version.
-> avrgcc20010211.exe , downloaded from http://combio.de/avr/index.html
However , a new bug seems to have popped up.
The following code is emitted wrong:
while ((inp(USR) & (1<<RXC)) == 0)
if ( i == 5)
// receive timeout
It worked fine with Volker's version.
If I remove the inner statements it works like it should have.
Same problem if the while() loop is changed into a for() loop.
It seems that the bit test is translated into this :
With the old compiler the "brlt" was "brge".
Can someone look into this ?
|[Prev in Thread]||Current Thread||[Next in Thread]|