From cf157d80bcabad6601c232fa31cf79a022542fe6 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Tue, 24 Jan 2017 11:04:21 +0100 Subject: [PATCH] [PR 79198] Call ipa-prop func summary destructor 2017-01-24 Martin Jambor PR bootstrap/79198 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor. * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts and known_contexts. From-SVN: r244860 --- gcc/ChangeLog | 7 +++++++ gcc/ipa-prop.c | 3 +++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e66fb836d68..23cbb99adf2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2017-01-24 Martin Jambor + + PR bootstrap/79198 + * ipa-prop.c (ipa_free_all_node_params): Call summary destructor. + * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts + and known_contexts. + 2017-01-24 Aldy Hernandez PR middle-end/79123 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 512bcbed0cb..834c27d100e 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -3574,6 +3574,7 @@ ipa_free_all_edge_args (void) void ipa_free_all_node_params (void) { + ipa_node_params_sum->~ipa_node_params_t (); ipa_node_params_sum = NULL; } @@ -3742,6 +3743,8 @@ ipa_node_params_t::insert (cgraph_node *, ipa_node_params *info) { info->lattices = NULL; info->ipcp_orig_node = NULL; + info->known_csts = vNULL; + info->known_contexts = vNULL; info->analysis_done = 0; info->node_enqueued = 0; info->do_clone_for_all_contexts = 0;