This is the mail archive of the gcc-help@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: How to diagnose inlining failure?


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


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