Re: On inlining of functions across 2 or more object files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 22, 2008 at 09:09:05AM -0500, Eljay Love-Jensen wrote:
> > Under any circumstances, it would be unacceptable for me to have an
> > inline function silently expanded to a "true" function.
> 
> That can happen if the inline expansion is too big.
> 
> You can guarantee that inline expansion using always_inline.
Are you sure of this?  Because the gcc documentation seems to imply that
always_inline just forces inlining regardless of optimization options,
it does not say that the function will be inlined if it is too big.

Also, there is an option -Winline which warns when an inline function is
not inlined.

Jeroen.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux