This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ObjC vs function-at-a-time
- To: shebs at apple dot com
- Subject: Re: ObjC vs function-at-a-time
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 26 Apr 2001 19:44:56 -0700
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <3AE8D3D2.A8071133@apple.com>
Are the decls you're synthesizing functions or variables? If they're
variables, then we shouldn't be trying to build statement-trees for
them, and the problem to solve is why start_decl/finish_decl are doing
that. If they're functions, then there's a different problem. You
might want to take a look at {start,finish}_cdtor in c-lang.c for
models of how to build little functions on the fly.
Let me know if that doesn't help.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com