ipa-fnsummary.c: fix use-after-free crash (PR jit/82826)
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 6 Nov 2017 16:31:04 +0000 (16:31 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 6 Nov 2017 16:31:04 +0000 (16:31 +0000)
commitde4381a4e91a5d827dd3b1cf6b290bc656848400
treef21368d55d3c905d850039a8f9827c3e69d4f16d
parent3e2927a1b05739384d2080f46cd0836980911822
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
gcc/ChangeLog
gcc/ipa-fnsummary.c
gcc/ipa-fnsummary.h
gcc/toplev.c