This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sigh. Inlining heuristics.
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: Sigh. Inlining heuristics.
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 10 Jul 2001 00:30:49 -0700
- cc: Linus Torvalds <torvalds at transmeta dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
>
> However, we'll still mark it to be inlined *anyway*. Observe:
>
> #include <stdio.h>
> struct S { void f(); };
> void S::f() {
> printf ("blah\n");
> }
>
> int main(void)
> {
> S a;
> a.f();
> }
Yes, we should not inline `S::f' here. But, we don't, using
the 3.0 build I have on i686-pc-linux-gnu, with -O2. What is
different?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com