This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC - Alternatives to gengtype
- From: Georg-Johann Lay <gjl at gcc dot gnu dot org>
- To: Diego Novillo <dnovillo at google dot com>
- Cc: gcc at gcc dot gnu dot org, Lawrence Crowl <crowl at google dot com>, Ian Lance Taylor <iant at google dot com>, Laurynas Biveinis <laurynas dot biveinis at gmail dot com>
- Date: Fri, 16 Nov 2012 12:52:56 +0100
- Subject: Re: RFC - Alternatives to gengtype
- References: <20121116005936.GA16988@google.com>
Diego Novillo wrote:
> === Approach: Move GTY to cc1plus.
>
> Instead of a separate weak parser, we would make cc1plus understand GTY
> attributes. The compiler would emit IL in the object files instead of
> generating source.
Does this mean GTY is implemented as a C++ language extension and the generated
code cares for whaterer is needed automatically, e.g. might need support of
something like a libgty++ support library?
Johann
> This solution would require a first boot stage that did not support PCH,
> because we cannot rely on the seed compiler supporting GTY. We would
> probably need to use the Boehm collector during the first stage as well.
>
> Because the first stage would be fundamentally different from the second
> stage, we may need to add an additional pass for correct object file
> comparisons.