aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-fnsummary.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-12-19 09:20:09 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-12-19 08:20:09 +0000
commit44fca83228acc96c19c51e52b5c0448e09329170 (patch)
treebfe0552c058c7e746f11c67c4516ecb3a1184026 /gcc/ipa-fnsummary.c
parent951e27f58ca5c7f33124407079c383706e99c68d (diff)
downloadgcc-44fca83228acc96c19c51e52b5c0448e09329170.zip
gcc-44fca83228acc96c19c51e52b5c0448e09329170.tar.gz
gcc-44fca83228acc96c19c51e52b5c0448e09329170.tar.bz2
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
Diffstat (limited to 'gcc/ipa-fnsummary.c')
-rw-r--r--gcc/ipa-fnsummary.c3
1 files changed, 1 insertions, 2 deletions
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 <ipa_size_summary *, va_heap>
- (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);
}