This is the mail archive of the gcc@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: ObjC vs function-at-a-time



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


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