This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: How to avoid a tree node being garbage collected after C frontend?
Thanks, it works. I should have read the internal manual
more carefully :-)
Cheers,
Bingfeng
> -----Original Message-----
> From: Basile STARYNKEVITCH [mailto:basile@starynkevitch.net]
> Sent: 10 November 2009 12:20
> To: Bingfeng Mei
> Cc: Ian Lance Taylor; gcc@gcc.gnu.org
> Subject: Re: How to avoid a tree node being garbage collected
> after C frontend?
>
> Bingfeng Mei wrote:
> > Ian,
> > Thanks. I tried to follow the examples, but it still doesn't work.
> > Here is the related code:
> >
> > in target-c.c:
> > extern GTY(()) tree pragma_ghs_sections[GHS_SECTION_COUNT];
> >
>
> Perhaps you need to make sure that target-c.c is processed by
> gengtype, and that it does include the generated
> gt-target-c.h file.
>
> Regards.
>
>
> --
> Basile STARYNKEVITCH http://starynkevitch.net/Basile/
> email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
> 8, rue de la Faiencerie, 92340 Bourg La Reine, France
> *** opinions {are only mines, sont seulement les miennes} ***
>
>