This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Using the tree.
- To: "Gcc at Gcc dot Gnu. Org" <gcc at gcc dot gnu dot org>
- Subject: Using the tree.
- From: "Virgil Palanciuc" <Virgil dot Palanciuc at cs dot pub dot ro>
- Date: Sat, 27 May 2000 13:01:12 +0300
I am trying to obtain all the variables declared in a function using
(to build a 'memory map'). I don't think I can find what I want from the
RTL - I tried that (I can't find arrays declared in a function).
I do something like:
for(tmp=getdecls();tmp;TREE_CHAIN(tmp))
debug_tree(tmp);
I looked through the output and I can't find any rel;evant information
(there doesn't seem to be anything in the output related to my variables -
only my function's name and a LOT of builtins).
What should I do get the information I need?
TIA,
Virgil