Thanks-intraprocedural is all I need.

Sorry, bit new to gcc internals (coming from SUIF), is anything missing from referenced_vars list or is it complete? docs in tree-dfa.c state that it doesn't look in statement operands. Does it just collect this from the symbol tables?

 Mike


On Wed, 6 Jul 2005, Daniel Berlin wrote:

On Wed, 2005-07-06 at 08:46 -0400, Daniel Berlin wrote:
Most of this can be found in the cgraph nodes.  The rest requires
scanning the IL.

Ken Zadeck should have code to do this.


Oh, i assumed you were trying to work at an interprocedural level.
If you only ever care to see a single function at a time, you can just
look at the referenced_vars list.



On Wed, 2005-07-06 at 08:32 -0400, Michael Tegtmeyer wrote:
Hello,

Is there existing functionality somewhere to sweep a function and collect
all externally visible variables at the tree level or do I need to roll my
own? I've looked in tree.h and grepped around as much as I could but I
haven't found anything obvious.

Thanks in advance,
Mike Tegtmeyer



Reply via email to