PR jit/63854: Fix leak of optimization_summary_obstack

gcc/ChangeLog:
	PR jit/63854
	* ipa-reference.c (ipa_reference_c_finalize): Release
	optimization_summary_obstack.

From-SVN: r217797
This commit is contained in:
David Malcolm 2014-11-19 19:45:39 +00:00 committed by David Malcolm
parent d5bee0f2af
commit 4c4d052c40
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-11-19 David Malcolm <dmalcolm@redhat.com>
PR jit/63854
* ipa-reference.c (ipa_reference_c_finalize): Release
optimization_summary_obstack.
2014-11-19 David Malcolm <dmalcolm@redhat.com>
PR jit/63854

View File

@ -1193,5 +1193,9 @@ make_pass_ipa_reference (gcc::context *ctxt)
void
ipa_reference_c_finalize (void)
{
ipa_init_p = false;
if (ipa_init_p)
{
bitmap_obstack_release (&optimization_summary_obstack);
ipa_init_p = false;
}
}