aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-11-06 16:31:04 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-11-06 16:31:04 +0000
commitde4381a4e91a5d827dd3b1cf6b290bc656848400 (patch)
treef21368d55d3c905d850039a8f9827c3e69d4f16d /gcc/toplev.c
parent3e2927a1b05739384d2080f46cd0836980911822 (diff)
downloadgcc-de4381a4e91a5d827dd3b1cf6b290bc656848400.zip
gcc-de4381a4e91a5d827dd3b1cf6b290bc656848400.tar.gz
gcc-de4381a4e91a5d827dd3b1cf6b290bc656848400.tar.bz2
ipa-fnsummary.c: fix use-after-free crash (PR jit/82826)
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
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 81a7cf6..eff1690 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -83,6 +83,7 @@ along with GCC; see the file COPYING3. If not see
#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"
@@ -2236,6 +2237,7 @@ toplev::finalize (void)
/* 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 ();