This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0 -finline-limit and c++
- To: teemu at torma dot org (Teemu Torma)
- Subject: Re: 3.0 -finline-limit and c++
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Mon, 4 Jun 2001 10:41:01 -0700 (PDT)
- Cc: mrs at windriver dot com (mike stump), gcc at gcc dot gnu dot org
Teemu Torma writes:
> .... In many cases the inline function is so simple, that inlining
> takes the same space or less than the function call itself would. That
> is exactly why I don't like the idea to stop inlining completely at some
> point, whilst bigger functions were inlined before.
This is why -Os does not turn off inlining. Rather, it sets the threshold
such that functions will still be inlined if the inlined call is about
the same size or less as the code to pass the arguments and call the
function.