aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline-transform.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-27 09:07:04 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-27 08:07:04 +0000
commita088d7b10f296dbd57bccbac1bfcf8abb207b034 (patch)
tree72ee8708324fbae1f27d3bcf7f18b19c574134aa /gcc/ipa-inline-transform.c
parentb1e655646f5b0be3d146825c130690078a8601c3 (diff)
downloadgcc-a088d7b10f296dbd57bccbac1bfcf8abb207b034.zip
gcc-a088d7b10f296dbd57bccbac1bfcf8abb207b034.tar.gz
gcc-a088d7b10f296dbd57bccbac1bfcf8abb207b034.tar.bz2
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
Diffstat (limited to 'gcc/ipa-inline-transform.c')
-rw-r--r--gcc/ipa-inline-transform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c
index 14e684e..ccaa0eb 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);
}