From 46bb9d29d3017715a7dbb9477612aff06f8c0994 Mon Sep 17 00:00:00 2001 From: Bin Cheng Date: Mon, 11 Dec 2017 10:47:53 +0000 Subject: [PATCH] re PR tree-optimization/83320 (Mismatched free() / delete / delete [] in gimple-loop-interchange.cc:948) PR tree-optimization/83320 * gimple-loop-interchange.cc (free_data_refs_with_aux): Use delete. (prune_datarefs_not_in_loop): Ditto. From-SVN: r255539 --- gcc/ChangeLog | 6 ++++++ gcc/gimple-loop-interchange.cc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f90b72..a00bff3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-12-11 Bin Cheng + + PR tree-optimization/83320 + * gimple-loop-interchange.cc (free_data_refs_with_aux): Use delete. + (prune_datarefs_not_in_loop): Ditto. + 2017-12-10 Gerald Pfeifer * doc/install.texi (Specific): Tweak link to mkssoftware.com. diff --git a/gcc/gimple-loop-interchange.cc b/gcc/gimple-loop-interchange.cc index 301b511..e80e65c 100644 --- a/gcc/gimple-loop-interchange.cc +++ b/gcc/gimple-loop-interchange.cc @@ -945,7 +945,7 @@ free_data_refs_with_aux (vec datarefs) if (dr->aux != NULL) { DR_ACCESS_STRIDE (dr)->release (); - free (dr->aux); + delete (vec *) dr->aux; } free_data_refs (datarefs); @@ -1867,7 +1867,7 @@ prune_datarefs_not_in_loop (struct loop *loop, vec datarefs) if (dr->aux) { DR_ACCESS_STRIDE (dr)->release (); - free (dr->aux); + delete (vec *) dr->aux; } free_data_ref (dr); } -- 2.7.4