Crucial C++ inlining broken under -Os

Joern Rennecke amylaar@spamcop.net
Thu Jul 1 22:46:00 GMT 2010


Quoting Richard Guenther <richard.guenther@gmail.com>:

> That is, we no longer optimistically assume that comdat functions
> can be eliminated if there are no callers in the local TU in 4.5
> (but we did in previous releases).

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.



More information about the Gcc mailing list