Lazy allocation of DECL_ASSEMBLER_NAME
Zack Weinberg
zack@codesourcery.com
Mon Mar 1 21:19:00 GMT 2004
Mark Mitchell <mark@codesourcery.com> writes:
>>forward declarations and such, so single function got many DECLs.
>>Also we can't hash directly the addresses as the hashtable is saved into
>>PCH headers, so I am unsure about better sollution to the hashing.
>>I need at least one entity that is stable across PCH and multiple
>>declarations...
>>
> Use DECL_UID.
DECL_UID will not work - the multiple decls for the same symbol that we
currently have, they do not have the same DECL_UID (there is special
code in copy_node, merge_decls (C), duplicate_decls (C++) to ensure
that they do not).
zw
More information about the Gcc
mailing list