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

PR middle-end/56461
	* ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
	FOR_EACH_DEFINED_FUNCTION when freeing state.

From-SVN: r196322
This commit is contained in:
Jakub Jelinek 2013-02-27 22:35:53 +01:00 committed by Jakub Jelinek
parent e19624ee2a
commit 307f83a3e7
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2013-02-27 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56461
* ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
FOR_EACH_DEFINED_FUNCTION when freeing state.
PR middle-end/56461
* df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
pool_free.

View File

@ -1479,7 +1479,7 @@ propagate (void)
propagate_pure_const ();
/* Cleanup. */
FOR_EACH_DEFINED_FUNCTION (node)
FOR_EACH_FUNCTION (node)
if (has_function_state (node))
free (get_function_state (node));
funct_state_vec.release ();