aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-06-08 14:26:57 +0200
committerMartin Liska <marxin@gcc.gnu.org>2018-06-08 12:26:57 +0000
commit746447567a82ce2987f579770fd296ace60f87b1 (patch)
treec22de406a2a163de859df4f8b0c31de0e34a74a3 /gcc/cgraph.c
parent9d3e0adc2a0e657b2aa384f1392dd2fac77a62d4 (diff)
downloadgcc-746447567a82ce2987f579770fd296ace60f87b1.zip
gcc-746447567a82ce2987f579770fd296ace60f87b1.tar.gz
gcc-746447567a82ce2987f579770fd296ace60f87b1.tar.bz2
Remove cgraph_node::summary_uid and make cgraph_node::uid really unique.
2018-06-08 Martin Liska <mliska@suse.cz> * cgraph.c (cgraph_node::remove): Do not recycle uid. * cgraph.h (symbol_table::release_symbol): Do not pass uid. (symbol_table::allocate_cgraph_symbol): Do not set uid. * passes.c (uid_hash_t): Record removed_nodes by their uids. (remove_cgraph_node_from_order): Use the removed_nodes set. (do_per_function_toporder): Likwise. * symbol-summary.h (symtab_insertion): Use cgraph_node::uid instead of summary_uid. (symtab_removal): Likewise. (symtab_duplication): Likewise. 2018-06-08 Martin Liska <mliska@suse.cz> * lto-partition.c (lto_balanced_map): Use cgraph_node::uid instead of summary_uid. From-SVN: r261315
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index f922b70..6c6ecd8 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -1779,7 +1779,6 @@ void
cgraph_node::remove (void)
{
cgraph_node *n;
- int uid = this->uid;
if (symtab->ipa_clones_dump_file && symtab->cloned_nodes.contains (this))
fprintf (symtab->ipa_clones_dump_file,
@@ -1875,7 +1874,7 @@ cgraph_node::remove (void)
call_site_hash = NULL;
}
- symtab->release_symbol (this, uid);
+ symtab->release_symbol (this);
}
/* Likewise indicate that a node is having address taken. */