This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Adds a __COUNTER__ macro.
- From: Tom Tromey <tromey at redhat dot com>
- To: "Ollie Wild" <aaw at google dot com>
- Cc: "GCC Patches" <gcc-patches at gcc dot gnu dot org>, "Dave Korn" <dave dot korn at artimi dot com>, "Basile STARYNKEVITCH" <basile at starynkevitch dot net>, "Ian Lance Taylor" <iant at google dot com>
- Date: Thu, 24 May 2007 13:01:06 -0600
- Subject: Re: PATCH: Adds a __COUNTER__ macro.
- References: <65dd6fd50705231434h2a9a8bf1h3ee9a7b2a19c2823@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "Ollie" == Ollie Wild <aaw@google.com> writes:
Ollie> This patch adds a builtin __COUNTER__ macro which expands to
Ollie> incrementing integral values starting from 0. In conjunction with the
Ollie> '##' operator, this is useful for generating unique identifiers. Per
Ollie> my comments at http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01488.html,
Ollie> this does not include some additional logic to integrate with the
Ollie> pending -fdirectives-only patch.
Ollie> Tested with a full bootstrap and testsuite run on i686-pc-linux-gnu.
Looks good to me. Thanks.
Tom