Commit 7dd2b60b by David Malcolm Committed by David Malcolm

PR jit/63854: Fix memory leak of save_decoded_options

gcc/ChangeLog:
	PR jit/63854
	* toplev.c (toplev::finalize): Clean up save_decoded_options.

From-SVN: r217795
parent 548296b0
2014-11-19 David Malcolm <dmalcolm@redhat.com>
PR jit/63854
* toplev.c (toplev::finalize): Clean up save_decoded_options.
2014-11-19 David Malcolm <dmalcolm@redhat.com>
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<>.
......@@ -2174,6 +2174,8 @@ toplev::finalize (void)
finalize_options_struct (&global_options);
finalize_options_struct (&global_options_set);
XDELETEVEC (save_decoded_options);
/* Clean up the context (and pass_manager etc). */
delete g;
g = NULL;
......
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