[pph] Re-instantiating namespaces and symbols
Jason Merrill
jason@redhat.com
Wed Jul 6 04:39:00 GMT 2011
On 07/06/2011 12:34 AM, Diego Novillo wrote:
> Is there a canonical way that we should use to rebuild the
> elements from scope_chain->bindings? Could we not simply add
> them to the current translation unit's scope_chain->bindings
> as-is, instead of doing all these pushdecl calls?
That would probably be better. pushdecl_with_scope assumes that the new
binding will be the innermost one, which is likely to cause headaches
for you.
> When we read the PPH file back in we do need to create varpool
> entries for some symbols so they get processed by the callgraph,
> but I'm not sure what's the best way to go about that.
I'm not sure where they're normally created.
Jason
More information about the Gcc
mailing list