> make_decl_rtl only calls this for: > if (TREE_CODE (decl) == FUNCTION_DECL > && cgraph_node::get (decl) > && cgraph_node::get (decl)->instrumentation_clone) > Is it intentional you are doing it unconditionally?
Yes, ultimate_transparent_alias_target is either called in make_decl_rtl or in assemble_name. I do not think there is way the symbol can land into .s file untranslated. I must admit I am surprised instrumentation_clones need any special handling here. instrumentation clones have special cases all over symbol table/cgrap code. I need to get familiar with these. > > > + *t = ggc_strdup (targetm.strip_name_encoding (IDENTIFIER_POINTER > > (id))); > > Otherwise it looks reasonable. Another option would be to just create the > RTL for notice_global_symbol purposes using make_decl_rtl_for_debug. Hmm, did not know about this one, but I think avoiding RTL here is best. Thanks for comments! Honza > > Jakub