> -----Original Message----- > From: > avr-gcc-list-bounces+eric.weddington=atmel....@nongnu.org > [mailto:avr-gcc-list-bounces+eric.weddington=atmel....@nongnu. > org] On Behalf Of Joerg Wunsch > Sent: Saturday, October 31, 2009 12:34 PM > To: avr-gcc-list@nongnu.org > Subject: Re: [avr-gcc-list] Re: optimizer removes volatile > pin access code.why? > > Erik Christiansen <dva...@internode.on.net> 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 mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list