[cfe-dev] always_inline and noinline attributes

Mike Stump mrs at apple.com
Wed Jul 23 12:39:10 PDT 2008


On Jul 23, 2008, at 4:43 AM, Matthijs Kooijman wrote:
> 1) A function marked always_inline must always be inlined.

Yes.  Though, seems reasonable to let this inlining happen at link  
time as well.

> b) An always_inline attribute stays with a function, regardless of its
> visibility. Any call site of the function, regardless of the  
> translation unit
> in which it lives, is inlined.

Yes.  One way to look at this, is, the always_inline body is never  
used to generate a stand alone function.



More information about the cfe-dev mailing list