aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-pure-const.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-02-27 22:35:53 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-02-27 22:35:53 +0100
commit307f83a3e7e625eb0fdb68e6b746aa90a3323cc2 (patch)
tree12f259e1572b11060670d90fe959d41b0348fffd /gcc/ipa-pure-const.c
parente19624ee2a4863da6ec9479252cafcf1ef1e1e78 (diff)
downloadgcc-307f83a3e7e625eb0fdb68e6b746aa90a3323cc2.zip
gcc-307f83a3e7e625eb0fdb68e6b746aa90a3323cc2.tar.gz
gcc-307f83a3e7e625eb0fdb68e6b746aa90a3323cc2.tar.bz2
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
Diffstat (limited to 'gcc/ipa-pure-const.c')
-rw-r--r--gcc/ipa-pure-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c
index 07ba90f..94c7315 100644
--- a/gcc/ipa-pure-const.c
+++ b/gcc/ipa-pure-const.c
@@ -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 ();