[PATCH][3.4] Fix PR15366, -fno-inline-functions is ignored for static functions

Richard Guenther richard.guenther@gmail.com
Thu Sep 1 08:11:00 GMT 2005


On 8/31/05, Paolo Bonzini <paolo.bonzini@lu.unisi.ch> wrote:
> 
> > + @item -finline-functions-called-once
> > + @opindex finline-functions-called-once
> > + Integrate functions called once into their callers.  The compiler
> > + heuristically decides which functions are simple enough to be worth
> > + integrating in this way.
> 
> This doc seems a bit incomplet and/or incorrekt... I think something
> simpler, like
> 
>    Integrate functions called once into their callers, even if not marked
>    as @code{inline}.

I simplified it to:

Consider all @code{static} functions called once for inlining into their
caller even if they are not marked @code{inline}.  If a call to a given
function is integrated, then the function is not output as assembler code
in its own right.

The "... in its own right" sounds weird to me, but I copied it from
inline-functions
description - it may be a valid idiom anyway(?)

Better?

Thanks,
Richard.



More information about the Gcc-patches mailing list