This is the mail archive of the
mailing list for the GCC project.
Re: On inlining in C++
On Mon, Aug 04, 2003 at 11:45:36AM -0700, Geoff Keating wrote:
> > Option 1:[honor inline]
> > Option 2: a version of GNU C++ that uses the smartest heuristics that the
> > "ignore inline" advocates can come up with.
> I completely agree.
> However, I claim that option (2) will always win or tie. Why?
> Because you can always use heuristics that are "inline exactly when
> option (1) would have inlined".
Well, certainly if #2 == #1, then you tie.
However, you don't win or tie if you get the same code, but the compiler