This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] RFC: fix inlining logic
- To: dann at godzilla dot ICS dot UCI dot EDU
- Subject: Re: [C++] RFC: fix inlining logic
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Wed, 02 May 2001 22:48:16 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <200105021341.aa10988@gremlin-relay.ics.uci.edu>
>>>>> "Dan" == Dan Nicolaescu <dann@godzilla.ICS.UCI.EDU> writes:
Dan> So flag_inline_functions is turned off all the time. Not
Dan> good.
Yes, good. This is by design.
The tree-based inliner will take care of inlining.
However, I see that we have broken -O3 for C++. The problem is in
semantics.c:
else if (DECL_INLINE (fn) && flag_inline_trees)
/* We might need the body of this function so that we can expand
it inline somewhere else. */
;
I will fix this tomorrow.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com