This is the mail archive of the
mailing list for the GCC project.
Re: How to use the garbage collector?
- To: peter at gerwinski dot de
- Subject: Re: How to use the garbage collector?
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 02 Jan 2001 10:29:02 -0800
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <20010102035117.B10663@esmeralda.gerwinski.de>
>>>>> "Peter" == Peter Gerwinski <email@example.com> writes:
Peter> while integrating GNU Pascal into gcc-2.97, I reached the
Peter> point where the compiler abort()s due to lang_mark_tree()
Peter> in ggc-callbacks.c.
Peter> What is the correct way to switch from obstacks to the GC
Peter> in the frontend?
Sadly, there's no great documentation here. But, the good news is
that it's pretty easy. You use lang_mark_tree to mark bits of nodes
that don't exist in the generic front-end; see
cp/decl.c:lang_mark_tree for examples. To get started, you can just
have lang_mark_tree return without doing anything -- that's fine, as
long as you have no language-specific tree nodes. Then, add what you
Mark Mitchell firstname.lastname@example.org
CodeSourcery, LLC http://www.codesourcery.com