inline bug (?)

Eric Botcazou ebotcazou@adacore.com
Wed Dec 1 13:46:00 GMT 2010


>  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



More information about the Gcc-help mailing list