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: Joerg Wunsch
Subject: Re: [avr-gcc-list] Re: optimizer removes volatile pin access code. why?
Date: Sat, 31 Oct 2009 20:34:02 +0100 (MET)

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.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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