Fix memory leaks in IPA CP (PR ipa/79337).
authorMartin Liska <mliska@suse.cz>
Fri, 3 Feb 2017 08:20:02 +0000 (09:20 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 3 Feb 2017 08:20:02 +0000 (08:20 +0000)
commite806796de03b50f1b8cddaa6e0696ab652f268ef
treefdc17253740fdcce9e854af3c077c20bd504fc47
parent6d5b4f9e713a7e6804d589dfef76ce8cad3d0f02
Fix memory leaks in IPA CP (PR ipa/79337).

2017-02-03  Martin Liska  <mliska@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.

From-SVN: r245145
gcc/ChangeLog
gcc/ipa-prop.c
gcc/ipa-prop.h
gcc/symbol-summary.h