This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add valgrind support to alloc-pool.c
- From: Richard Guenther <richard dot guenther at gmail dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 18 Aug 2012 09:56:18 +0200
- Subject: Re: [PATCH] Add valgrind support to alloc-pool.c
- References: <CA+=Sn1n46jJ6WYFBpXaPyyUf7Unsobw_9Q1D+MqeJ8=iNMGB6Q@mail.gmail.com>
On Sat, Aug 18, 2012 at 6:17 AM, Andrew Pinski <pinskia@gmail.com> wrote:
> Hi,
> I implemented this patch almost 6 years ago when the df branch was
> being worked on. It adds valgrind support to alloc-pool.c to catch
> cases of using memory after free the memory.
>
> OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.
Ok.
Thanks,
Richard.
> Thanks,
> Andrew Pinski
>
> ChangeLog:
> * alloc-pool.c (pool_alloc): Add valgrind markers.
> (pool_free): Likewise.