cgraph.c (cgraph_node::make_local): No name is unique during incremental linking.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 29 Nov 2015 22:33:23 +0000 (23:33 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 29 Nov 2015 22:33:23 +0000 (22:33 +0000)
commitf1703a2e2b3fefa60a70e08f30be5fb4a7fd8b4f
treeb119bcfa394a1eeb2b5f120d0165f4e631cf136b
parenta4850ce9b58d12158248dc7fbe1015646757c813
cgraph.c (cgraph_node::make_local): No name is unique during incremental linking.

* cgraph.c (cgraph_node::make_local): No name is unique during
incremental linking.
* cgraph.h (can_be_discarded_p): Update comment; also common and
WEAK in named sections can be discarded; when doing incremental
link do not rely on resolution being the final one.
* varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
When symbol can be discarded, do not rely on resolution info.
* symtab.c (symtab_node::nonzero_address): Take into account that
symbol can be discarded.
* ipa-visibility.c (update_visibility_by_resolution_info): Handle
definition correctly.
(function_and_variable_visibility): Do not set unique_name when
incrementally linking.

From-SVN: r231050
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/ipa-visibility.c
gcc/symtab.c
gcc/varasm.c