https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79337
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Fri Feb 3 08:20:02 2017 New Revision: 245145 URL: https://gcc.gnu.org/viewcvs?rev=245145&root=gcc&view=rev Log: Fix memory leaks in IPA CP (PR ipa/79337). 2017-02-03 Martin Liska <mli...@suse.cz> PR ipa/79337 * ipa-prop.c (ipa_node_params_t::insert): Remove current implementation. (ipa_node_params_t::remove): Likewise. * ipa-prop.h (ipa_node_params::ipa_node_params): Make default initialization from removed ipa_node_params_t::insert. (ipa_node_params::~ipa_node_params): Move from removed ipa_node_params_t::release. * symbol-summary.h (symbol_summary::m_released): New member. Do not release a summary twice. Do not allow to call finalizer for types of a summary that live in GGC memory. Modified: trunk/gcc/ChangeLog trunk/gcc/ipa-prop.c trunk/gcc/ipa-prop.h trunk/gcc/symbol-summary.h