> On 05/19/2014 06:10 PM, Jan Hubicka wrote:
> >Instead of adding extra loop over whole symtab, what about converting them 
> >at a time
> >the symbols are inserted into the symbol table or in 
> >function_and_variable_visibility
> >that already does quite few changes into various flags?
> 
> Converting them during the initial analyze pass seems to do the trick:
> 
> 
> 
> 

> commit 062e714358ad384f1a69051f3b7f3902b9714904
> Author: Jason Merrill <ja...@redhat.com>
> Date:   Mon May 19 15:41:24 2014 -0400
> 
>       PR c++/47202
>     gcc/cp/
>       * decl.c (cxx_comdat_group): Return a decl.
>       * optimize.c (cdtor_comdat_group): Get its DECL_ASSEMBLER_NAME.
>     gcc/
>       * cgraph.h (symtab_node::get_comdat_group_id): New.
>       * cgraphunit.c (analyze_functions): Call it.
>       * symtab.c (dump_symtab_node): Likewise.
>       * tree.c (decl_comdat_group_id): New.
>       * tree.h: Declare it.
>       * lto-streamer-out.c (write_symbol): Use it.
>       * trans-mem.c (ipa_tm_create_version_alias): Likewise.

OK, thanks!
Honza

Reply via email to