[avr-gcc-list] Re: Volatile bad compiled while

2009-11-26 Thread David Brown
max2009tiny wrote: Hi everybody. I make project on Tiny2313 and use volatile register unsigned char lastrec asm(r8) and lastrec is modified on rs232 rx isr. When compile little function __attribute__ ((noinline)) void waitACK(u08 cmack) { while(cmack!=lastrec) ; //wait for reply request }

Re: [avr-gcc-list] Volatile bad compiled while

2009-11-26 Thread Joerg Wunsch
max2009tiny m...@canor-audio.com wrote: Hi everybody. I make project on Tiny2313 and use volatile register unsigned char lastrec asm(r8) volatile register doesn't work. There used to be a warning for this, which has been dropped in the past. GCC 4.4 does have the warning back: