Jan Hubicka <jh@suse.cz>
authorJan Hubicka <jh@suse.cz>
Thu, 9 May 2013 15:37:12 +0000 (17:37 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 9 May 2013 15:37:12 +0000 (15:37 +0000)
commit64cfa6c0dbf18985f4fcf2598cbd2a009c55a6a2
tree5bec71a52459958db61953abca4983cf0be11acc
parentc3167b004d64be32e926e053e83e34774ad0e2bd
Jan Hubicka  <jh@suse.cz>
Richard Biener  <rguenther@suse.de>

PR lto/54095
* symtab.c (symtab_make_decl_local): Do not add private names.

* lto.c (lto_register_var_decl_in_symtab): Don't do renaming.
(lto_register_var_decl_in_symtab): Likewise.
(lto_main): Promote statics.
* lto-partition.c (privatize_symbol_name): New function.
(promote_symbol): Use it.
(may_need_named_section_p): New predicate.
(rename_statics): New functions.
(lto_promote_cross_file_statics): Simplify; do renaming.
(lto_promote_statics_nonwpa): New function.
* lto-partition.h (lto_promote_statics_nonwpa): New function.

Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r198741
gcc/ChangeLog
gcc/lto/ChangeLog
gcc/lto/lto-partition.c
gcc/lto/lto-partition.h
gcc/lto/lto.c
gcc/symtab.c