This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Disabling the heuristic inliner
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 19 Dec 2007 18:25:20 -0700
- Subject: Disabling the heuristic inliner
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
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