[cfe-dev] always_inline and noinline attributes

Devang Patel dpatel at apple.com
Tue Jul 22 17:38:46 PDT 2008


On Jul 22, 2008, at 5:10 PM, Eli Friedman wrote:

> Oh... okay, thanks for clarifying.  That said, it seems sort of silly.
> If the function can't be removed, doesn't always_inline just force
> the compiler to bloat the code?
>
> Is there some attribute that would enforce throwing away the
> definition?  If not, would it be useful to add one?  Or is
> always_inline along with static generally good enough?

I *think* using "static" is the only option. Note, this is a gcc  
extension.
-
Devang




More information about the cfe-dev mailing list