This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 08/11] Example of converting global state to per-pass state
- From: Richard Henderson <rth at redhat dot com>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 01 Aug 2013 10:58:07 -1000
- Subject: Re: [PATCH 08/11] Example of converting global state to per-pass state
- References: <1374851081-32153-1-git-send-email-dmalcolm at redhat dot com> <1374851081-32153-9-git-send-email-dmalcolm at redhat dot com>
On 07/26/2013 05:04 AM, David Malcolm wrote:
> gcc/testsuite/
>
> Example of converting global state to per-pass state.
>
> * gcc.dg/plugin/one_time_plugin.c (one_pass::execute): Convert
> global state "static int counter" to...
> (one_pass::counter): ...this instance data.
Ok.
r~