diff options
author | David Malcolm <dmalcolm@redhat.com> | 2018-06-21 13:44:38 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2018-06-21 13:44:38 +0000 |
commit | e67343d7445768ef22523894ec589791f526234c (patch) | |
tree | 509668c58bbb866feb8ad46e0b2cf471d68682c6 /gcc/ipa-cp.c | |
parent | d22d74e09dc48d1bffbcfd467fffaad7465d8676 (diff) | |
download | gcc-e67343d7445768ef22523894ec589791f526234c.zip gcc-e67343d7445768ef22523894ec589791f526234c.tar.gz gcc-e67343d7445768ef22523894ec589791f526234c.tar.bz2 |
Fix IPA crash in libgccjit
gcc/ChangeLog:
* ipa-cp.c (ipcp_driver): Set edge_clone_summaries to NULL after
deleting it.
* ipa-reference.c (ipa_reference_c_finalize): Delete
ipa_ref_opt_sum_summaries and set it to NULL.
From-SVN: r261846
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index c192e84..42dd4cc 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -5089,6 +5089,7 @@ ipcp_driver (void) /* Free all IPCP structures. */ free_toporder_info (&topo); delete edge_clone_summaries; + edge_clone_summaries = NULL; ipa_free_all_structures_after_ipa_cp (); if (dump_file) fprintf (dump_file, "\nIPA constant propagation end\n"); |