From 3e7743d4e183dba7a3caf0098d4c3d9796927e46 Mon Sep 17 00:00:00 2001 From: hubicka Date: Sun, 16 May 2010 17:26:55 +0000 Subject: [PATCH] * ipa.c (function_and_variable_visibility): Also bring local all aliases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159461 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/ipa.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 71cf0d3..94f6358 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-05-16 Jan Hubicka + + * ipa.c (function_and_variable_visibility): Also bring local all + aliases. + 2010-05-16 Richard Guenther * alias.c (nonoverlapping_memrefs_p): Remove use of diff --git a/gcc/ipa.c b/gcc/ipa.c index 9d2b023..c8b0d7b 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -655,8 +655,11 @@ function_and_variable_visibility (bool whole_program) if (!node->local.externally_visible && node->analyzed && !DECL_EXTERNAL (node->decl)) { + struct cgraph_node *alias; gcc_assert (whole_program || !TREE_PUBLIC (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) /* cgraph_externally_visible_p has already checked all other nodes in the group and they will all be made local. We need to -- 2.7.4