From: David Malcolm Date: Wed, 19 Nov 2014 19:28:33 +0000 (+0000) Subject: PR jit/63854: Fix memory leak within bb-reorder.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=548296b07c39f8997df43785ecb2629bf9f471e2;p=gcc.git 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 --- 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)