> -----Original Message-----
> From: Anatoly Sokolov [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 22, 2008 11:09 AM
> To: Weddington, Eric; David Brown; [email protected]
> Subject: Re: [avr-gcc-list] Avr-gcc Produces Incorrect Code with -Os
> 
> Hi.
> 
> > An alternative way to handle this sort of thing would be to 
> implement a 
> > "critical" function attribute like in the msp430 port of gcc - a 
> > function with this attribute has interrupts disabled at the 
> start, and 
> > restored at the end.  
> 
>   It will work for for tiny and mega devices, but xmega 
> devices have Non-Maskable Interrupts, and clearing of the 
> I-bit does not guarantee 
> full continuity execution of a code.

Sure.
 
>  I shall make a patch for "critical" attribute.
> 

Thanks for doing this. When you make the patch, be sure that it also
works if the function is inlined.

Eric


_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to