[C++] RFC: fix inlining logic

Mark Mitchell mark@codesourcery.com
Wed May 2 22:48:00 GMT 2001


>>>>> "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



More information about the Gcc-patches mailing list