This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Lazy allocation of DECL_ASSEMBLER_NAME


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]