diff options
author | Jan Hubicka <jh@suse.cz> | 2013-05-09 17:37:12 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-05-09 15:37:12 +0000 |
commit | 64cfa6c0dbf18985f4fcf2598cbd2a009c55a6a2 (patch) | |
tree | 5bec71a52459958db61953abca4983cf0be11acc /gcc/symtab.c | |
parent | c3167b004d64be32e926e053e83e34774ad0e2bd (diff) | |
download | gcc-64cfa6c0dbf18985f4fcf2598cbd2a009c55a6a2.zip gcc-64cfa6c0dbf18985f4fcf2598cbd2a009c55a6a2.tar.gz gcc-64cfa6c0dbf18985f4fcf2598cbd2a009c55a6a2.tar.bz2 |
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
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r-- | gcc/symtab.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c index a474bfe..56f0de9 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -756,23 +756,6 @@ symtab_make_decl_local (tree decl) if (DECL_ONE_ONLY (decl) || DECL_COMDAT (decl)) { - /* It is possible that we are linking against library defining same COMDAT - function. To avoid conflict we need to rename our local name of the - function just in the case WHOPR partitioning decide to make it hidden - to avoid cross partition references. */ - if (flag_wpa) - { - const char *old_name; - symtab_node node = symtab_get_node (decl); - old_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)); - change_decl_assembler_name (decl, - clone_function_name (decl, "local")); - if (node->symbol.lto_file_data) - lto_record_renamed_decl (node->symbol.lto_file_data, - old_name, - IDENTIFIER_POINTER - (DECL_ASSEMBLER_NAME (decl))); - } DECL_SECTION_NAME (decl) = 0; DECL_COMDAT (decl) = 0; } |