http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57267

--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> ---
> is this PR duplicate of lto/57038 ?
You are right, I meant lto/57038.
This PR is not exactly dup of lto/57038, but while fixing lto/57038 I
constructed artificial testcase similar to yours
and thus the problem should be fixed by
2013-05-15  Jan Hubicka  <j...@suse.cz>

        PR lto/57038
        PR lto/47375
        * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
        weakrefs are not external.
        (lto_symtab_merge_decls): Fix thinko when dealing with
        non-lto_symtab decls.
        (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
        (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
        * varpool.c (dump_varpool_node): Dump more flags.

        * lto-partition.c (get_symbol_class): Fix weakrefs.
        (lto_balanced_map): Fix weakrefs.
        (privatize_symbol_name): Remove unnecesary label.
        (rename_statics): Handle weakrefs as statics.

Reply via email to