From 65be83b5ac0410a5e64c648c36aaf4bd10d09bf2 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 14 Jan 2020 11:32:13 -0500 Subject: [PATCH] ipa-profile.c: reset call_sums state within ipa-profile.c (v2; PR 93315) gcc/ChangeLog: PR ipa/93315 * ipa-profile.c (ipa_profile): Delete call_sums and set it to NULL on exit. --- gcc/ChangeLog | 6 ++++++ gcc/ipa-profile.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1e596773ba0..325033610d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2020-01-21 David Malcolm + + PR ipa/93315 + * ipa-profile.c (ipa_profile): Delete call_sums and set it to + NULL on exit. + 2020-01-18 Jan Hubicka PR lto/93318 diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index 670d9e2fb73..8c5502bcc88 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -1023,6 +1023,9 @@ ipa_profile (void) if (dump_file && (dump_flags & TDF_DETAILS)) symtab->dump (dump_file); + delete call_sums; + call_sums = NULL; + return 0; } -- 2.30.2