This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Saving extension semantic values from collection


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]