This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Adds a __COUNTER__ macro.


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]