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

PR middle-end/56461
	* ipa-cp.c (decide_whether_version_node): Call vec_free on
	known_aggs[i].items and release known_aggs vector.

From-SVN: r196320
This commit is contained in:
Jakub Jelinek 2013-02-27 22:34:27 +01:00 committed by Jakub Jelinek
parent 97785e5285
commit 90e709fd8e
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2013-02-27 Jakub Jelinek <jakub@redhat.com>
PR middle-end/56461
* ipa-cp.c (decide_whether_version_node): Call vec_free on
known_aggs[i].items and release known_aggs vector.
PR middle-end/56461
* ipa-reference.c (propagate): Free node_info even for alias nodes.

View File

@ -3406,6 +3406,9 @@ decide_whether_version_node (struct cgraph_node *node)
info = IPA_NODE_REF (node);
info->do_clone_for_all_contexts = false;
IPA_NODE_REF (clone)->is_all_contexts_clone = true;
for (i = 0; i < count ; i++)
vec_free (known_aggs[i].items);
known_aggs.release ();
ret = true;
}
else