Re: inline bug (?)

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

 



>  For what is worth I did the test again but this time I separated the main
> and f1 in two separate C files. I compiled them separately and then linked
> them together. This time the function was never inlined (even if there is
> just one or two calls, i.e. NC=1 or 2).

You need LTO (-flto) to inline between different compilation units.

-- 
Eric Botcazou


[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