This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[obv] free VEC in ipa-split.c:find_split_points
- From: Nathan Froyd <froydnj at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Aug 2010 20:00:41 -0700
- Subject: [obv] free VEC in ipa-split.c:find_split_points
We weren't freeing the DFS stack in find_split_points.
Tested on x86_64-unknown-linux-gnu. Committed as obvious.
-Nathan
* ipa-split.c (find_split_points): Free stack.
Index: ipa-split.c
===================================================================
--- ipa-split.c (revision 163046)
+++ ipa-split.c (working copy)
@@ -903,6 +903,7 @@ find_split_points (int overall_time, int
ENTRY_BLOCK_PTR->aux = NULL;
FOR_EACH_BB (bb)
bb->aux = NULL;
+ VEC_free (stack_entry, heap, stack);
BITMAP_FREE (current.ssa_names_to_pass);
}