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: tot at trema dot com
- Subject: Re: 3.0 -finline-limit and c++
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Fri, 25 May 2001 08:36:38 -0700
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <3B0E409F.B410DF8E@trema.com>
>>>>> "Teemu" == Teemu Torma <tot@trema.com> writes:
Teemu> At least in my mind, this is not very desirable effect, and
Teemu> makes -finline-limit quite useless, other than incresing
Your approach is unsafe in that you can have a very, very long (even
exponentially long) series of small inline functions that together
produce a very, very huge function.
The current tree-based inlining heuristics are not ideal -- but they
do go a long ways towards making sure that we have non-infinite
compile-times. I don't think we should change them from GCC 3.0,
unless we come up with something that is better in all cases.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com