diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-23 15:39:50 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-02-23 15:39:50 +0000 |
commit | 46d58fa5d18f3667ae6d506a2fd08bcbf782d46f (patch) | |
tree | 8558d61563a5774f4be3abfc1b874da2ee621b4d /gcc/ipa.c | |
parent | 770f5885e2423d3e043869e6059113f7491e025e (diff) | |
download | gcc-46d58fa5d18f3667ae6d506a2fd08bcbf782d46f.tar.gz |
2010-02-23 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 156999
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@157006 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa.c')
-rw-r--r-- | gcc/ipa.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/ipa.c b/gcc/ipa.c index 1230448ecbf..63de1d99d44 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -400,9 +400,7 @@ function_and_variable_visibility (bool whole_program) && !DECL_EXTERNAL (node->decl)) { gcc_assert (whole_program || !TREE_PUBLIC (node->decl)); - TREE_PUBLIC (node->decl) = 0; - DECL_COMDAT (node->decl) = 0; - DECL_WEAK (node->decl) = 0; + cgraph_make_decl_local (node->decl); } node->local.local = (cgraph_only_called_directly_p (node) && node->analyzed @@ -431,8 +429,7 @@ function_and_variable_visibility (bool whole_program) if (!vnode->externally_visible) { gcc_assert (whole_program || !TREE_PUBLIC (vnode->decl)); - TREE_PUBLIC (vnode->decl) = 0; - DECL_COMMON (vnode->decl) = 0; + cgraph_make_decl_local (vnode->decl); } gcc_assert (TREE_STATIC (vnode->decl)); } |