gcc-in-cxx: Garbage Collecting STL Containers

Doug Gregor doug.gregor@gmail.com
Wed Jun 25 19:09:00 GMT 2008


On Wed, Jun 25, 2008 at 10:49 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Daniel" == Daniel Jacobowitz <drow@false.org> writes:
>
>>> On Wed, Jun 25, 2008 at 08:35:41AM -0600, Tom Tromey wrote:
>>> I think most of the needed changes will be in gengtype.  If you aren't
>>> familiar with what this does, read gcc/doc/gty.texi.
>
> Daniel> Also - I may regret saying this but - doesn't gengtype have a
> Daniel> simplistic C parser in it?  How upset is it likely to get on C++
> Daniel> input?
>
> Yeah, it does -- see gengtype-parse.c.
> I haven't done extensive hacking there; I don't really know how upset
> it will be.  I assume it won't work the first time :)

It turns out that we already have a parser capable of handling C++...
why not just build gengtype on top of the C++ front end?

  - Doug



More information about the Gcc mailing list