re PR middle-end/56461 (GCC is leaking lots of memory)

PR middle-end/56461
	* sel-sched-ir.c (free_sched_pools): Release
	succs_info_pool.stack[succs_info_pool.max_top] vectors too
	if succs_info_pool.max_top isn't -1.

From-SVN: r196450
This commit is contained in:
Jakub Jelinek 2013-03-05 07:02:36 +01:00 committed by Jakub Jelinek
parent a5d1569a6d
commit 85f5dbea3d
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2013-03-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56461
* sel-sched-ir.c (free_sched_pools): Release
succs_info_pool.stack[succs_info_pool.max_top] vectors too
if succs_info_pool.max_top isn't -1.
PR bootstrap/56509
* opts.c (opts_obstack, opts_concat): Moved to...
* opts-common.c (opts_obstack, opts_concat): ... here.

View File

@ -5020,7 +5020,7 @@ free_sched_pools (void)
free_alloc_pool (sched_lists_pool);
gcc_assert (succs_info_pool.top == -1);
for (i = 0; i < succs_info_pool.max_top; i++)
for (i = 0; i <= succs_info_pool.max_top; i++)
{
succs_info_pool.stack[i].succs_ok.release ();
succs_info_pool.stack[i].succs_other.release ();