C++ PATCH: Fix -O3

Mark Mitchell mark@codesourcery.com
Thu May 3 22:28:00 GMT 2001


  If the function we are considering inlining is too large, don't inline it
  If the function we are considering inlining would make the number of
  inlined insns over the course of entire compilation too large, don't
  inline it.

I agree that this would be wrong, but I don't think it behaves this
way.  There's no global data here.

The inline_data structure is reset at the beginning of
the inlining pass for each function.

You'll have to show an example.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the Gcc mailing list