On 12/11/2013 12:45 PM, Jan Hubicka wrote:
I wonder, if we won't end up with better code going the oposite way. We can declare those functions static first and then have post-inliner IPA pass that will travel the callgraph and mark all static functions/variables that are accessed only from one comdat to be comdat local.
With that scheme I would be concerned that we would tend to inline the wrappers so that we can't move the worker function into the comdat, and we end up with copies of it in lots of object files.
Jason