This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Question on tree-walking and mutually-recursive types
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: pinskia at physics dot uc dot edu
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 28 Jun 04 23:13:50 EDT
- Subject: Re: Question on tree-walking and mutually-recursive types
Yes walk using a hashtable saying you already walked the tree.
walk_tree_without_duplicates is what you want.
Well, sure, but most callers don't use that. I thought of making a
call to that instead of walk_tree at the TREE_TYPE for POINTER_TYPE
location if htab is zero, but that sounds costly and I'd rather not
if I can avoid it.