Commit e27d328a by Max Ostapenko Committed by Maxim Ostapenko

re PR ipa/63696 (Alloc-dealloc-mismatch in ipa-icf.c)

gcc/

2014-10-31  Max Ostapenko  <m.ostapenko@partner.samsung.com>

        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
parent cb115cc2
2014-10-31 Max Ostapenko <m.ostapenko@partner.samsung.com>
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 <felix.yang@huawei.com> 2014-10-10 Felix Yang <felix.yang@huawei.com>
* config/xtensa/xtensa.h (TARGET_LOOPS): New Macro. * config/xtensa/xtensa.h (TARGET_LOOPS): New Macro.
...@@ -216,7 +216,7 @@ sem_function::sem_function (cgraph_node *node, hashval_t hash, ...@@ -216,7 +216,7 @@ sem_function::sem_function (cgraph_node *node, hashval_t hash,
sem_function::~sem_function () sem_function::~sem_function ()
{ {
for (unsigned i = 0; i < bb_sorted.length (); i++) for (unsigned i = 0; i < bb_sorted.length (); i++)
free (bb_sorted[i]); delete (bb_sorted[i]);
arg_types.release (); arg_types.release ();
bb_sizes.release (); bb_sizes.release ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment