gcc/ChangeLog:
PR jit/80954
* ipa-inline-analysis.c (free_growth_caches): Set
edge_removal_hook_holder to NULL after removing it.
From-SVN: r248841
+2017-06-02 David Malcolm <dmalcolm@redhat.com>
+
+ PR jit/80954
+ * ipa-inline-analysis.c (free_growth_caches): Set
+ edge_removal_hook_holder to NULL after removing it.
+
2017-06-02 Sudakshina Das <sudi.das@arm.com>
* config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
free_growth_caches (void)
{
if (edge_removal_hook_holder)
- symtab->remove_edge_removal_hook (edge_removal_hook_holder);
+ {
+ symtab->remove_edge_removal_hook (edge_removal_hook_holder);
+ edge_removal_hook_holder = NULL;
+ }
edge_growth_cache.release ();
}