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]
Other format: [Raw text]

Re: How to run over each node of a tree ?


On Tue, 2003-05-20 at 05:16, Matthieu Moy wrote:

> I want to do a complete run over a tree (GCC AST). 
> 
Implement a call-back function for walk_tree.

> In particular, how  can I know wether a node has  a TREE_CHAIN field ?
> This field sometimes points to a junk value (Not NULL, not a tree ...)
> 
Check lang_hooks.tree_inlining.tree_chain_matters_p.  If that is true
for a node, TREE_CHAIN should be valid.


Diego.


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