Commit 548296b0 by David Malcolm Committed by David Malcolm

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
parent 10fdd6e9
2014-11-19 David Malcolm <dmalcolm@redhat.com> 2014-11-19 David Malcolm <dmalcolm@redhat.com>
PR jit/63854 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 <dmalcolm@redhat.com>
PR jit/63854
* config/alpha/alpha.c (alpha_option_override): Remove static from * config/alpha/alpha.c (alpha_option_override): Remove static from
"handle_trap_shadows_info" and "align_insns_info". "handle_trap_shadows_info" and "align_insns_info".
* config/i386/i386.c (ix86_option_override): Likewise for * config/i386/i386.c (ix86_option_override): Likewise for
...@@ -1581,7 +1581,7 @@ find_rarely_executed_basic_blocks_and_crossing_edges (void) ...@@ -1581,7 +1581,7 @@ find_rarely_executed_basic_blocks_and_crossing_edges (void)
edge e; edge e;
edge_iterator ei; edge_iterator ei;
unsigned int cold_bb_count = 0; unsigned int cold_bb_count = 0;
vec<basic_block> bbs_in_hot_partition = vNULL; auto_vec<basic_block> bbs_in_hot_partition;
/* Mark which partition (hot/cold) each basic block belongs in. */ /* Mark which partition (hot/cold) each basic block belongs in. */
FOR_EACH_BB_FN (bb, cfun) FOR_EACH_BB_FN (bb, cfun)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment