This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH PR83320]Fix new/free mismatch issue
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org,Bin Cheng <Bin dot Cheng at arm dot com>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: nd <nd at arm dot com>
- Date: Fri, 08 Dec 2017 20:16:51 +0100
- Subject: Re: [PATCH PR83320]Fix new/free mismatch issue
- Authentication-results: sourceware.org; auth=none
- References: <DB5PR0801MB2742EDF572F46448FD3C145AE7300@DB5PR0801MB2742.eurprd08.prod.outlook.com>
On December 8, 2017 6:49:21 PM GMT+01:00, Bin Cheng <Bin.Cheng@arm.com> wrote:
>Hi,
>While I am still trying to reproduce and verify the issue (valgrind
>checking runs very slow for me),
>It's clear I made stupid mistake using free for newed vector. This
>simple patch fixes it.
>Bootstrap and test ongoing. Is it OK?
OK.
Richard.
>Thanks,
>bin
>2017-12-06 Bin Cheng <bin.cheng@arm.com>
>
> PR tree-optimization/83320
> * gimple-loop-interchange.cc (free_data_refs_with_aux): Use delete.
> (prune_datarefs_not_in_loop): Ditto.