diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-22 15:56:01 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-08-22 15:56:01 +0000 |
commit | a0e183973b352c1575682ab8c39e0108ed8e16a3 (patch) | |
tree | 4feaebb39db7ffb6afc56c0849e25071a852772e | |
parent | b3b2d3c1c4b53ae1bebad34e5e3f62d1c0246eb1 (diff) | |
download | gcc-a0e183973b352c1575682ab8c39e0108ed8e16a3.tar.gz |
* ipa.c (function_and_variable_visibility): First remember function was global
and then make it local.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201924 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ipa.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 08c4e318448..ea3c14a82b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-08-22 Jan Hubicka <jh@susue.cz> + + * ipa.c (function_and_variable_visibility): First remember function was global + and then make it local. + 2013-08-22 Julian Brown <julian@codesourcery.com> * configure.ac: Add aarch64 to list of arches which use "nop" in diff --git a/gcc/ipa.c b/gcc/ipa.c index 7e8a82cc432..370032b84e7 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -968,10 +968,10 @@ function_and_variable_visibility (bool whole_program) && !vnode->symbol.weakref) { gcc_assert (in_lto_p || whole_program || !TREE_PUBLIC (vnode->symbol.decl)); - symtab_make_decl_local (vnode->symbol.decl); vnode->symbol.unique_name = ((vnode->symbol.resolution == LDPR_PREVAILING_DEF_IRONLY || vnode->symbol.resolution == LDPR_PREVAILING_DEF_IRONLY_EXP) && TREE_PUBLIC (vnode->symbol.decl)); + symtab_make_decl_local (vnode->symbol.decl); if (vnode->symbol.same_comdat_group) symtab_dissolve_same_comdat_group_list ((symtab_node) vnode); vnode->symbol.resolution = LDPR_PREVAILING_DEF_IRONLY; |