avr-gcc-list
[Top][All Lists]
Advanced

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

RE: [avr-gcc-list] Re: optimizer removes volatile pin access code.why?


From: Weddington, Eric
Subject: RE: [avr-gcc-list] Re: optimizer removes volatile pin access code.why?
Date: Sat, 31 Oct 2009 15:00:13 -0600

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Saturday, October 31, 2009 12:34 PM
> To: address@hidden
> Subject: Re: [avr-gcc-list] Re: optimizer removes volatile 
> pin access code.why?
> 
> Erik Christiansen <address@hidden> wrote:
> 
> >> I've tried it with -Os and foo() is still called.
> 
> > Ah, yes, optimisation needs to be used for inline to work.
> 
> This contradicts the documentation though:
> 
> `always_inline'
>      Generally, functions are not inlined unless optimization is
>      specified.  For functions declared inline, this attribute inlines
>      the function even if no optimization level was specified.
> 
> As such, it might be worth a bug report.

What version is being used here? Someone needs to try this on GCC HEAD (future 
4.5) and see if this has been changed.




reply via email to

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