https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64447

--- Comment #4 from Jan Hubicka <hubicka at ucw dot cz> ---
Hi,
the problem is that estimate_function_body_sizes frees ipa_free_all_node_params
when called late via add_new_function.
the following patch should fix it.

Honza

Index: ipa-inline-analysis.c
===================================================================
--- ipa-inline-analysis.c    (revision 219108)
+++ ipa-inline-analysis.c    (working copy)
@@ -2851,7 +2851,7 @@ estimate_function_body_sizes (struct cgr
     {
       if (!early)
         loop_optimizer_finalize ();
-      else
+      else if (!ipa_edge_args_vector)
     ipa_free_all_node_params ();
       free_dominance_info (CDI_DOMINATORS);
     }

Reply via email to