From 44fca83228acc96c19c51e52b5c0448e09329170 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 19 Dec 2019 09:20:09 +0100 Subject: ipa: duplicate ipa_size_summary for cloned nodes * ipa-fnsummary.h (ipa_size_summary): Remove copy consturctor. (ipa_size_summary_t): Add duplicate method; move to heap. * ipa-fnsumary.c (ipa_fn_summary_alloc): Fix allocation. From-SVN: r279563 --- gcc/ipa-fnsummary.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/ipa-fnsummary.c') diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index a54703f..5486f64 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -672,8 +672,7 @@ static void ipa_fn_summary_alloc (void) { gcc_checking_assert (!ipa_fn_summaries); - ipa_size_summaries = new fast_function_summary - (symtab); + ipa_size_summaries = new ipa_size_summary_t (symtab); ipa_fn_summaries = ipa_fn_summary_t::create_ggc (symtab); ipa_call_summaries = new ipa_call_summary_t (symtab); } -- cgit v1.1