mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-22 12:24:38 +08:00
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:
parent
a5d1569a6d
commit
85f5dbea3d
@ -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.
|
||||
|
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user