On Tue 2026-11-03 10:15:49, Martin Jambor wrote: > Hi, > > On Mon, Nov 02 2026, Giuliano Belinassi wrote: > > In many cases the original code checked if the decl is a variable or a > > function and forward the call to either varpool_node::get_create or > > cgraph_node::get_create. However, there is an API already for > > checking that: symtab_node::get_create. Hence, modify the code for > > the cases where this is suitable. > > > > gcc/ChangeLog: > > > > * cgraphunit.cc (symbol_table::process_same_body_aliases): Call > > symtab_node::get_create. > > * tree.cc (set_decl_section_name): Likewise. > > (decl_init_priority_insert): Likewise. > > * varasm.cc (assemble_alias): Likewise. > > (make_decl_one_only): Likewise. > > > > gcc/cp/ChangeLog: > > > > * decl.cc (duplicate_decls): Call symtab_node::get_create. > > OK, thanks, > > Martin >
Ok, I committed it for Giuliano. Thanks, Filip
