From: Steven Bosscher Date: Thu, 27 Dec 2012 00:10:14 +0000 (+0000) Subject: * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set. X-Git-Tag: releases/gcc-4.8.0~1241 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8052ea7701ec0ae380f620d8f963d1ea81e2cb70;p=thirdparty%2Fgcc.git * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set. From-SVN: r194726 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1c43d8a1bb65..651ba4835b6d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-12-27 Steven Bosscher + + * cgraph.c (verify_cgraph_node): Don't allocate/free visited_nodes set. + 2012-12-25 John David Anglin PR target/53789 diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 3af545671e1c..444b4f0e957c 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?! */