From 548296b07c39f8997df43785ecb2629bf9f471e2 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 19 Nov 2014 19:28:33 +0000 Subject: [PATCH] PR jit/63854: Fix memory leak within bb-reorder.c gcc/ChangeLog: PR jit/63854 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges): Convert local bbs_in_hot_partition from vec<> to auto_vec<>. From-SVN: r217794 --- gcc/ChangeLog | 7 +++++++ gcc/bb-reorder.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8328c07446a..18115e157ea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * bb-reorder.c + (find_rarely_executed_basic_blocks_and_crossing_edges): Convert + local bbs_in_hot_partition from vec<> to auto_vec<>. + 2014-11-19 David Malcolm PR jit/63854 diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 0cab2861151..689d7b6a471 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -1581,7 +1581,7 @@ find_rarely_executed_basic_blocks_and_crossing_edges (void) edge e; edge_iterator ei; unsigned int cold_bb_count = 0; - vec bbs_in_hot_partition = vNULL; + auto_vec bbs_in_hot_partition; /* Mark which partition (hot/cold) each basic block belongs in. */ FOR_EACH_BB_FN (bb, cfun) -- 2.30.2