This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Intermediate representation
- From: Nicolas COLLIN <nicolas dot collin at fr dot thalesgroup dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 08 Jun 2009 14:11:35 +0200
- Subject: Intermediate representation
In my version DECL_SAVED_TREE is defined as :
#define DECL_SAVED_TREE(NODE) DECL_MEMFUNC_POINTER_TO (NODE)
I just looked at DECL_MEMFUNC and it doesn't do what I want.
Then I don't know how to get the statements in the FUNCTION_DECL I got.
Nicolas COLLIN
Ian Lance Taylor a écrit :
Nicolas COLLIN <nicolas.collin@fr.thalesgroup.com> writes:
In fact, I go through the tree in the function finish_decl in the file gcc/cp/
decl.c
I see every decl and struct in the tree, but my problem is with the node
FUNCTION_DECL : I don't know how to get every statements in it. I tried the
macro DECL_SAVED_TREE but it doesn't work. Maybe because the version I use is
older than the version you describe in the doc , could you give me the source
code of the precedent macro, thus I 'll may be able to see what goes wrong.
Please reply to the mailing list, not just to me.
You can only look at the statements after parsing the function is
complete. At that time DECL_SAVED_TREE should contain a valid value.
Ian