[Top][All Lists]
[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.
- [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, (continued)
- [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Erik Christiansen, 2009/10/28
- [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, David Brown, 2009/10/28
- RE: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Stu Bell, 2009/10/28
- [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, David Brown, 2009/10/29
- RE: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Stu Bell, 2009/10/30
- Re: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, df_welch, 2009/10/28
- [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, David Brown, 2009/10/29
- Re: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Erik Christiansen, 2009/10/29
- Re: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Erik Christiansen, 2009/10/29
- Re: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Joerg Wunsch, 2009/10/31
- RE: [avr-gcc-list] Re: optimizer removes volatile pin access code.why?,
Weddington, Eric <=
- Re: [avr-gcc-list] Re: optimizer removes volatile pin access code.why?, Joerg Wunsch, 2009/10/31
- RE: [avr-gcc-list] Re: optimizer removes volatile pin access code.why?, Weddington, Eric, 2009/10/31
- Re: [avr-gcc-list] Re: optimizer removes volatile pin access code.why?, Joerg Wunsch, 2009/10/31
- RE: [avr-gcc-list] Re: optimizer removes volatile pin access code.why?, Weddington, Eric, 2009/10/31
- [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, David Brown, 2009/10/28
- RE: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Stu Bell, 2009/10/28
- Re: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?, Joerg Wunsch, 2009/10/28