This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Disabling the heuristic inliner


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

Thanks,
Shaun

On Dec 19, 2007 6:25 PM, Shaun Jackman <sjackman@gmail.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]