Release cgraph_{node,edge} via ggc_free (PR ipa/89330).
authorMartin Liska <mliska@suse.cz>
Sun, 28 Jul 2019 17:10:26 +0000 (19:10 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Sun, 28 Jul 2019 17:10:26 +0000 (17:10 +0000)
commitfe248a88e5ec39a2faef1fb35a81f0f921fa952d
treeba5e596764b3e32248ad0ad682802284d60fddae
parent4f394a9e1c5fffda66f822b13d2b9cc2623db653
Release cgraph_{node,edge} via ggc_free (PR ipa/89330).

2019-07-28  Martin Liska  <mliska@suse.cz>

PR ipa/89330
* cgraph.c (symbol_table::create_edge): Always allocate
a cgraph_edge.
(symbol_table::free_edge): Store summary_id to
edge_released_summary_ids if != -1;
* cgraph.h (NEXT_FREE_NODE): Remove.
(SET_NEXT_FREE_NODE): Likewise.
(NEXT_FREE_EDGE): Likewise.
(symbol_table::release_symbol): Store summary_id to
cgraph_released_summary_ids if != -1;
(symbol_table::allocate_cgraph_symbol): Always allocate
a cgraph_node.

From-SVN: r273857
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h