[Bug ipa/89330] IPA inliner touches released cgraph_edges
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 28 17:11:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89330
--- Comment #16 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Sun Jul 28 17:10:26 2019
New Revision: 273857
URL: https://gcc.gnu.org/viewcvs?rev=273857&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cgraph.c
trunk/gcc/cgraph.h
More information about the Gcc-bugs
mailing list