ipa.c (function_and_variable_visibility): First remember function was global and then make it local.
* ipa.c (function_and_variable_visibility): First remember function was global and then make it local. From-SVN: r201924
This commit is contained in:
parent
1bea243d32
commit
7bf4274ea7
@ -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>
|
2013-08-22 Julian Brown <julian@codesourcery.com>
|
||||||
|
|
||||||
* configure.ac: Add aarch64 to list of arches which use "nop" in
|
* configure.ac: Add aarch64 to list of arches which use "nop" in
|
||||||
|
@ -968,10 +968,10 @@ function_and_variable_visibility (bool whole_program)
|
|||||||
&& !vnode->symbol.weakref)
|
&& !vnode->symbol.weakref)
|
||||||
{
|
{
|
||||||
gcc_assert (in_lto_p || whole_program || !TREE_PUBLIC (vnode->symbol.decl));
|
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.unique_name = ((vnode->symbol.resolution == LDPR_PREVAILING_DEF_IRONLY
|
||||||
|| vnode->symbol.resolution == LDPR_PREVAILING_DEF_IRONLY_EXP)
|
|| vnode->symbol.resolution == LDPR_PREVAILING_DEF_IRONLY_EXP)
|
||||||
&& TREE_PUBLIC (vnode->symbol.decl));
|
&& TREE_PUBLIC (vnode->symbol.decl));
|
||||||
|
symtab_make_decl_local (vnode->symbol.decl);
|
||||||
if (vnode->symbol.same_comdat_group)
|
if (vnode->symbol.same_comdat_group)
|
||||||
symtab_dissolve_same_comdat_group_list ((symtab_node) vnode);
|
symtab_dissolve_same_comdat_group_list ((symtab_node) vnode);
|
||||||
vnode->symbol.resolution = LDPR_PREVAILING_DEF_IRONLY;
|
vnode->symbol.resolution = LDPR_PREVAILING_DEF_IRONLY;
|
||||||
|
Loading…
Reference in New Issue
Block a user