From: Max Ostapenko Date: Fri, 31 Oct 2014 10:53:36 +0000 (+0200) Subject: re PR ipa/63696 (Alloc-dealloc-mismatch in ipa-icf.c) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e27d328acd69237a7af3988b26dce54aed1e9741;p=gcc.git re PR ipa/63696 (Alloc-dealloc-mismatch in ipa-icf.c) gcc/ 2014-10-31 Max Ostapenko PR ipa/63696 * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init. From-SVN: r216954 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 28ae5521756..36bf711aa2b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-10-31 Max Ostapenko + + PR ipa/63696 + * ipa-icf.c (sem_function::~sem_function): Change free to delete to avoid + alloc-dealloc mismatch with new, called in ipa_icf::sem_function::init. + 2014-10-10 Felix Yang * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro. diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 975894beee0..a278a6262bd 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -216,7 +216,7 @@ sem_function::sem_function (cgraph_node *node, hashval_t hash, sem_function::~sem_function () { for (unsigned i = 0; i < bb_sorted.length (); i++) - free (bb_sorted[i]); + delete (bb_sorted[i]); arg_types.release (); bb_sizes.release ();