This is the mail archive of the
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, 18 Nov 2009 16:19:43 -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 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.