gcc/ChangeLog:
PR jit/82826
* ipa-fnsummary.c (ipa_fnsummary_c_finalize): New function.
* ipa-fnsummary.h (ipa_fnsummary_c_finalize): New decl.
* toplev.c: Include "ipa-fnsummary.h".
(toplev::finalize): Call ipa_fnsummary_c_finalize.
From-SVN: r254458
+2017-11-06 David Malcolm <dmalcolm@redhat.com>
+
+ PR jit/82826
+ * ipa-fnsummary.c (ipa_fnsummary_c_finalize): New function.
+ * ipa-fnsummary.h (ipa_fnsummary_c_finalize): New decl.
+ * toplev.c: Include "ipa-fnsummary.h".
+ (toplev::finalize): Call ipa_fnsummary_c_finalize.
+
2017-11-06 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/82838
{
return new pass_ipa_fn_summary (ctxt);
}
+
+/* Reset all state within ipa-fnsummary.c so that we can rerun the compiler
+ within the same process. For use by toplev::finalize. */
+
+void
+ipa_fnsummary_c_finalize (void)
+{
+ ipa_free_fn_summary ();
+}
vec<inline_param_summary>
inline_param_summary);
+void ipa_fnsummary_c_finalize (void);
+
#endif /* GCC_IPA_FNSUMMARY_H */
#include "edit-context.h"
#include "tree-pass.h"
#include "dumpfile.h"
+#include "ipa-fnsummary.h"
#if defined(DBX_DEBUGGING_INFO) || defined(XCOFF_DEBUGGING_INFO)
#include "dbxout.h"
/* Needs to be called before cgraph_c_finalize since it uses symtab. */
ipa_reference_c_finalize ();
+ ipa_fnsummary_c_finalize ();
cgraph_c_finalize ();
cgraphunit_c_finalize ();