diff options
author | Jan Hubicka <jh@suse.cz> | 2013-05-08 14:59:21 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-05-08 12:59:21 +0000 |
commit | 702d87032825f284efe6a5287c478692e103318c (patch) | |
tree | 4de5ffd28741a97813d02261d3fc8eed70c982ba /gcc/cgraph.c | |
parent | 8b28cf47bf7f071c979cb13694e45757081ee9d7 (diff) | |
download | gcc-702d87032825f284efe6a5287c478692e103318c.zip gcc-702d87032825f284efe6a5287c478692e103318c.tar.gz gcc-702d87032825f284efe6a5287c478692e103318c.tar.bz2 |
re PR lto/54095 (Unnecessary static variable renaming)
PR lto/54095
* cgraph.c (cgraph_make_node_local_1): Se unique_name.
* cgraph.h (symtab_node_base): Add unique_name.
* lto-cgraph.c (lto_output_node, lto_output_varpool_node,
input_overwrite_node, input_varpool_node): Stream unique_name.
* cgraphclones.c (cgraph_create_virtual_clone,
cgraph_function_versioning): Set unique_name.
* ipa.c (function_and_variable_visibility): Set unique_name.
From-SVN: r198710
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r-- | gcc/cgraph.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 693d4db..a6a16e6 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1798,6 +1798,8 @@ cgraph_make_node_local_1 (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED) node->symbol.externally_visible = false; node->local.local = true; + node->symbol.unique_name = (node->symbol.resolution == LDPR_PREVAILING_DEF_IRONLY + || node->symbol.resolution == LDPR_PREVAILING_DEF_IRONLY_EXP); node->symbol.resolution = LDPR_PREVAILING_DEF_IRONLY; gcc_assert (cgraph_function_body_availability (node) == AVAIL_LOCAL); } |