From bc2fcccd9d5cc9d346543a98c98dc00d71e9a5b8 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Thu, 1 Oct 2020 15:03:19 +0200 Subject: Fix ICE in ipa_edge_args_sum_t::duplicate PR ipa/97244 * ipa-fnsummary.c (pass_free_fnsummary::execute): Free also indirect inlining datastructure. * ipa-modref.c (pass_ipa_modref::execute): Do not free them here. * ipa-prop.c (ipa_free_all_node_params): Do not crash when info does not exist. (ipa_unregister_cgraph_hooks): Likewise. --- gcc/ipa-fnsummary.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ipa-fnsummary.c') diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c index 4c1c1f9..8285cc0 100644 --- a/gcc/ipa-fnsummary.c +++ b/gcc/ipa-fnsummary.c @@ -4680,6 +4680,8 @@ public: virtual unsigned int execute (function *) { ipa_free_fn_summary (); + /* Free ipa-prop structures if they are no longer needed. */ + ipa_free_all_structures_after_iinln (); if (!flag_wpa) ipa_free_size_summary (); return 0; -- cgit v1.1