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:
parent
97785e5285
commit
90e709fd8e
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user