This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to diagnose inlining failure?
- From: Ian Lance Taylor <iant at google dot com>
- To: Henrik MannerstrÃm <henrik dot mannerstrom at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 28 Mar 2012 16:56:06 -0700
- Subject: Re: How to diagnose inlining failure?
- References: <4F72D0C8.1050200@gmail.com>
Henrik MannerstrÃm <henrik.mannerstrom@gmail.com> writes:
> I get the following warning from the compiler:
>
> header.h:10: warning: inlining failed in call to âdouble hill(double,
> double, double)â: call is unlikely and code size would grow
>
> I know that the "--param" option has many variables controlling inlining
> but I don't know which ones to change. Can I get some kind of diagnostic
> of the specific decision the compiler makes when not inlining?
To my eyes, that is the diagnostic right there: "the call is unlikely
and code size would grow." What kind of diagnostic are you looking for?
Ian