Re: [PATCH] Commonize anon-name generation

2019-05-24 Thread Iain Buclaw
On Fri, 24 May 2019 at 16:34, Nathan Sidwell wrote: > > Currently gcc/tree.c exports an anonymous name format string, and a > predicate to detect identifiers of that form. The C++ and D FEs use > those functions to create and check anonymous names. > > That seems a little duplicative. This patch

Re: [PATCH] Commonize anon-name generation

2019-05-24 Thread Jason Merrill
On Fri, May 24, 2019 at 10:34 AM Nathan Sidwell wrote: > > Currently gcc/tree.c exports an anonymous name format string, and a > predicate to detect identifiers of that form. The C++ and D FEs use > those functions to create and check anonymous names. > > That seems a little duplicative. This pa

[PATCH] Commonize anon-name generation

2019-05-24 Thread Nathan Sidwell
Currently gcc/tree.c exports an anonymous name format string, and a predicate to detect identifiers of that form. The C++ and D FEs use those functions to create and check anonymous names. That seems a little duplicative. This patch changes tree.c to export an anonymous name generator, and u