This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Using the tree.
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: RE: Using the tree.
- From: "Virgil Palanciuc" <Virgil dot Palanciuc at cs dot pub dot ro>
- Date: Sun, 28 May 2000 18:22:35 +0300
- Cc: "Gcc at Gcc dot Gnu. Org" <gcc at gcc dot gnu dot org>
> > It is for the C front end. I had some doubts whether this
> will work or
> > not - but I supposed that since it doesn't crash, it should
> work. Besides, I
> > can find out the parameters, or the return type for my
> function, but there
> > seems to be nothing there about the local variables.
>
> The problem is that getdecls returns the declarations *of the current
> binding level*. That is, when a binding level is closed, the decls
> list is lost. At the end of the function, only the binding level of
> the parameters is still open.
Yes, this looks like the explanation. But what *exactly* does 'a binding
level is closed' mean? Is the info still there (I think it should) ? Do I
have another way to get it? How?
Virgil.