aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-12-27 00:10:14 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-12-27 00:10:14 +0000
commit8052ea7701ec0ae380f620d8f963d1ea81e2cb70 (patch)
tree5a46e2bb49ab3280e0d5a3999a6927484082329f /gcc
parent4e766b5d405a628b974daa96e92d36fd6fd92870 (diff)
downloadgcc-8052ea7701ec0ae380f620d8f963d1ea81e2cb70.zip
gcc-8052ea7701ec0ae380f620d8f963d1ea81e2cb70.tar.gz
gcc-8052ea7701ec0ae380f620d8f963d1ea81e2cb70.tar.bz2
* cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set.
From-SVN: r194726
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraph.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 1c43d8a..651ba48 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2012-12-27 Steven Bosscher <steven@gcc.gnu.org>
+
+ * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set.
+
2012-12-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/53789
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 3af5456..444b4f0 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2498,9 +2498,6 @@ verify_cgraph_node (struct cgraph_node *node)
{
if (this_cfun->cfg)
{
- /* The nodes we're interested in are never shared, so walk
- the tree ignoring duplicates. */
- struct pointer_set_t *visited_nodes = pointer_set_create ();
/* Reach the trees by walking over the CFG, and note the
enclosing basic-blocks in the call edges. */
FOR_EACH_BB_FN (this_block, this_cfun)
@@ -2550,7 +2547,6 @@ verify_cgraph_node (struct cgraph_node *node)
}
}
}
- pointer_set_destroy (visited_nodes);
}
else
/* No CFG available?! */