[PATCH] Clean up early inliner

Jan Hubicka hubicka@ucw.cz
Mon Apr 12 11:11:00 GMT 2010


> 
> The latter sounds like what they should do anyways - inline limit
> functions disregarding inline limits.  What else? ;)

Yep, it is a better variant given that we decided to make the small function
inliner consider all alwaysinlines.

As a consequence alwaysinlines will also end up being fed to recursive inlining
I think.  So be sure that something like the following:

static inline
__attribute__ ((always_inline))
bomb ()
{ 
  while (q())
    bomb(),
    bomb(),
    bomb(),
    bomb(),
    bomb(),
    bomb();
}
void
t()
{ 
  bomb ();
}

won't blow up the compiler :) (it almost does now ;))

Thanks!
Honza



More information about the Gcc-patches mailing list