This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC plugins & GGC & explicit gcc_free
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Basile Starynkevitch <basile at starynkevitch dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 30 Aug 2014 09:20:56 +0200
- Subject: Re: GCC plugins & GGC & explicit gcc_free
- Authentication-results: sourceware.org; auth=none
- References: <1409326183 dot 8563 dot 7 dot camel at starynkevitch dot net> <ffa6d830-4a68-4c8c-a481-07aae8f6e4f6 at email dot android dot com> <1409335718 dot 8563 dot 11 dot camel at starynkevitch dot net>
On August 29, 2014 8:08:38 PM CEST, Basile Starynkevitch <basile@starynkevitch.net> wrote:
>On Fri, 2014-08-29 at 19:58 +0200, Richard Biener wrote:
>>
>> You are in the same situation as any other pass would be. Don't hang
>on things that can get stale.
>>
>> There is no point in keeping a pointer to a deleted edge.
>
>Yes there is. The use case is to make some statistics on edges and to
>print these at FINISH_UNIT time.
Then this is either not possible with a plugin (you'd have to patch the edge code) or you have to create your own shadow data structure to do that.
Richard.
>Regards.