-finline-limit

Maurizio Vitale maurizio.vitale@polymath-solutions.com
Mon Aug 13 21:16:00 GMT 2007


On Aug 13, 2007, at 4:37 PM, Ian Lance Taylor wrote:

>
> The docs are wrong.
>
> What they should actually say is more complicated.  -finline-limit now
> controls two different parameters.  -finline-limit=N sets both
> parameters to N / 2.  The defaults for the parameters are different
> (one defaults to 450, the other to 90).  So -finline-limit=900 sets
> one to the default and increases the other, while -finline-limit=180
> decreases the first and sets the other to the default.
>

Mhh. What I have is:

	- nothing specified on the command line (p1=450, p2=90)  => no  
inlining in my case
	- -finline-limit=65 (p1=p2=32)    => inlining just fine
         - -finline-limit=60 (p1=p2=30)   => no inlining

Are those two parameter still going in the same direction (e.g.  
larger values mean more complex
functions get inlined)?

Where in the source code can I find comments on this?

Best regards,

	Maurizio



More information about the Gcc-help mailing list