This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using known data structure hierarchy in GC and PCH?
- From: Laurynas Biveinis <laurynas dot biveinis at gmail dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>, Diego Novillo <dnovillo at google dot com>, Jan Hubicha <jh at suse dot cz>
- Date: Tue, 11 Dec 2012 08:32:28 +0200
- Subject: Re: Using known data structure hierarchy in GC and PCH?
- References: <CABu31nOtVikA-f9W04j12+KpGffZo090kqGnBKiON8njDSX=YQ@mail.gmail.com>
Hi -
> Another "problem" with gengtype is that it doesn't know what types can
> end up in a PCH. The CFG data structures can *never* be in a PCH, but
> there still are PCH writer functions. This is true for many other data
> structures as well.
Yes, gengtype does not differentiate between GC and PCH currently.
> Should we (as an intermediate step
> towards streaming PCHs) explicitly GTY-mark types that should have PCH
> writer functions, and not generate such functions for unmarked types?
IMHO that's a good idea.
--
Laurynas