Commit e419f710 by Jan Hubicka Committed by Jan Hubicka

ipa.c (function_and_variable_visibility): Also bring local all aliases.


	* ipa.c (function_and_variable_visibility): Also bring local all
	aliases.

From-SVN: r159461
parent 2e0c984c
2010-05-16 Jan Hubicka <jh@suse.cz>
* ipa.c (function_and_variable_visibility): Also bring local all
aliases.
2010-05-16 Richard Guenther <rguenther@suse.de> 2010-05-16 Richard Guenther <rguenther@suse.de>
* alias.c (nonoverlapping_memrefs_p): Remove use of * alias.c (nonoverlapping_memrefs_p): Remove use of
......
...@@ -655,8 +655,11 @@ function_and_variable_visibility (bool whole_program) ...@@ -655,8 +655,11 @@ function_and_variable_visibility (bool whole_program)
if (!node->local.externally_visible && node->analyzed if (!node->local.externally_visible && node->analyzed
&& !DECL_EXTERNAL (node->decl)) && !DECL_EXTERNAL (node->decl))
{ {
struct cgraph_node *alias;
gcc_assert (whole_program || !TREE_PUBLIC (node->decl)); gcc_assert (whole_program || !TREE_PUBLIC (node->decl));
cgraph_make_decl_local (node->decl); cgraph_make_decl_local (node->decl);
for (alias = node->same_body; alias; alias = alias->next)
cgraph_make_decl_local (alias->decl);
if (node->same_comdat_group) if (node->same_comdat_group)
/* cgraph_externally_visible_p has already checked all other nodes /* cgraph_externally_visible_p has already checked all other nodes
in the group and they will all be made local. We need to in the group and they will all be made local. We need to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment