This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ipa/64447] [5 Regression] FAIL: gcc.dg/vect/slp-9.c


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);
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]