[PR 79198] Call ipa-prop func summary destructor
authorMartin Jambor <mjambor@suse.cz>
Tue, 24 Jan 2017 10:04:21 +0000 (11:04 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 24 Jan 2017 10:04:21 +0000 (11:04 +0100)
2017-01-24  Martin Jambor  <mjambor@suse.cz>

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
gcc/ipa-prop.c

index e66fb836d68da4d4266411e64eae147f0bf95c1c..23cbb99adf2e2359d75cfe893bb6dfe5325a668a 100644 (file)
@@ -1,3 +1,10 @@
+2017-01-24  Martin Jambor  <mjambor@suse.cz>
+
+       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  <aldyh@redhat.com>
 
        PR middle-end/79123
index 512bcbed0cbdee18ff4253e21c77965eb73ee5db..834c27d100e7aa862268ab80d8434f83f13a6b05 100644 (file)
@@ -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;