https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94223

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> lhd_set_decl_assembler_name seems to only do this for local decls though
> so it shouldn't matter for actual generated code but is just a
> compare-debug artifact?  If it matters for code-generation then yes,
> a local counter should do (does it really need to be GTY?)

Yes, it does that only for local decls, so partly it is a -fcompare-debug
artifact (shows up e.g. in the (symbol_ref:DI "C.4.1983454")) and partly it is
observable in the symbol table.  The -fcompare-debug checking comparison
doesn't print DECL_UIDs, but in these cases where it is DECL_ASSEMBLER_NAME or
something that makes it into RTL it just doesn't know that it a part of the
identifier was formed from a DECL_UID.
As for GTY, maybe we don't need it.

Reply via email to