From a088d7b10f296dbd57bccbac1bfcf8abb207b034 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 27 Oct 2019 09:07:04 +0100 Subject: [PATCH] ipa-inline-transform.c (inline_call): update function summaries after expanidng thunk. * ipa-inline-transform.c (inline_call): update function summaries after expanidng thunk. From-SVN: r277483 --- gcc/ChangeLog | 5 +++++ gcc/ipa-inline-transform.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a9131149a1..15fd0be7bd0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-10-27 Jan Hubicka + + * ipa-inline-transform.c (inline_call): update function summaries + after expanidng thunk. + 2019-10-27 Jan Hubicka * ipa-icf.c (sem_function::merge): Update function summaries. diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c index 14e684e08fd..ccaa0ebf582 100644 --- a/gcc/ipa-inline-transform.c +++ b/gcc/ipa-inline-transform.c @@ -352,12 +352,14 @@ inline_call (struct cgraph_edge *e, bool update_original, if (to->thunk.thunk_p) { struct cgraph_node *target = to->callees->callee; + symtab->call_cgraph_removal_hooks (to); if (in_lto_p) to->get_untransformed_body (); to->expand_thunk (false, true); /* When thunk is instrumented we may have multiple callees. */ for (e = to->callees; e && e->callee != target; e = e->next_callee) ; + symtab->call_cgraph_insertion_hooks (to); gcc_assert (e); } -- 2.30.2