On Fri, Jul 2, 2010 at 4:06 PM, Frank Ch. Eigler <f...@redhat.com> wrote: > Joern Rennecke <amyl...@spamcop.net> writes: > >> [...] But if the function is very simple, the only reason to keep >> it would be if its address was taken somewhere, or if we tailcall >> it. > > ... or to make it available from gdb as an inferior call.
We do end up eliminating it from the TUs object file, just inline limits try to limit program growth. Now the issue with the past heuristic is that if you have a very large .comdat function that is called once in a TU and once in another TU we think that inlining it in both TUs will decrease the size of the program. But in fact it does not as it wasn't really a function called once. Richard. > - FChE >