[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] new AVR-GCC bug

From: rudi gerrits
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
    return 0;
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 :
   in r18,11
   tst r18
   brlt .L18
With the old compiler the "brlt" was "brge".
Can someone look into this ?
Rudi Gerrits

reply via email to

[Prev in Thread] Current Thread [Next in Thread]