This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Saving extension semantic values from collection
- To: kenner at vlsi1 dot ultra dot nyu dot edu
- Subject: Re: Saving extension semantic values from collection
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Mon, 20 Mar 2000 23:16:25 +0100
- CC: gcc-patches at gcc dot gnu dot org
- References: <10003201357.AA13937@vlsi1.ultra.nyu.edu>
> The right approach, and one that I think we may have to do for other
> reasons anyway, is to make the trees in the parse stack visible to
> GGC.
How exactly would you do that? Since YYSTYPE is a union, you'd only
have to register those fields that do, in fact, are of ttype. That, of
course, depends on the content of yyss in a non-trivial manner. To
have the relevant bits at run-time, you'd either need to modify bison,
or parse y.output. Or did you think of a different approach.
Regards,
Martin