This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Sigh. Inlining heuristics.



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]