Disabling the heuristic inliner
Shaun Jackman
sjackman@gmail.com
Thu Nov 19 01:22:00 GMT 2009
2009/11/18 Shaun Jackman <sjackman@gmail.com>:
> Is it possible to disable the heuristic inline function logic? I would
> like the following behaviour:
>
> * static inline functions are always inlined
> * non-static functions are never inlined
> * static functions that are called once are inlined
> * static functions that are called more than once are not inlined
>
> I'm using -Os, and I'm trying to find the right combination of -f
> switches to enable this behaviour.
>
> Thanks,
> Shaun
I haven't done a lot of testing, but
-Os -fno-inline-small-functions
seems to accomplish this.
Cheers,
Shaun
More information about the Gcc
mailing list