Re: [cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-24 Thread Diego Novillo
On 12-05-24 04:24 , Richard Guenther wrote: and we could manually provide specializations for selected types (well, the templates). Add a GTY((template)) marker to make gengtype not emit the specializations itself (or simply make it recognize template types and do nothing for them). Patience.

Re: [cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-24 Thread Gabriel Dos Reis
On Thu, May 24, 2012 at 3:24 AM, Richard Guenther wrote: > On Wed, May 23, 2012 at 9:49 PM, Diego Novillo wrote: >> >> Part 2 of the VEC C++ conversion.  This patch implements the gengtype >> changes. >> >> I extended gengtype to understand templated types.  These changes are >> not as ugly as I

Re: [cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-24 Thread Richard Guenther
On Wed, May 23, 2012 at 9:49 PM, Diego Novillo wrote: > > Part 2 of the VEC C++ conversion.  This patch implements the gengtype > changes. > > I extended gengtype to understand templated types.  These changes are > not as ugly as I thought they would be.  Gengtype has some hardwired > knowledge of

Re: [cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-23 Thread Lawrence Crowl
On 5/23/12, Diego Novillo wrote: > Part 2 of the VEC C++ conversion. This patch implements the gengtype > changes. LGTM. -- Lawrence Crowl

[cxx-conversion] Convert vec.[ch] to C++ [2/3] (issue6236043)

2012-05-23 Thread Diego Novillo
Part 2 of the VEC C++ conversion. This patch implements the gengtype changes. I extended gengtype to understand templated types. These changes are not as ugly as I thought they would be. Gengtype has some hardwired knowledge of VEC_*, which I renamed to vec_t. I'm not even sure why gengtype n