Is there a switch to never inline a non-static function?

Thanks,
Shaun

On Dec 19, 2007 6:25 PM, Shaun Jackman <[EMAIL PROTECTED]> wrote:
> Is it possible to disable the heuristic inline function logic? I would
> like to select the following behaviour:
>
> * all static inline functions are always inlined
> * all static functions that are called once are inlined
> (-finline-functions-called-once)
> * no other functions are inlined
>
> I'm using -Os and I'm trying to find the right combination of -f
> switches to enable this behaviour. I tried
> -finline-limit=1 -finline-functions-called-once
> but it caused static inline functions to not be inlined.
>
> Thanks,
> Shaun

Reply via email to