This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
problem with function trees
- To: gcc at gcc dot gnu dot org
- Subject: problem with function trees
- From: Dave Morse <dm at bomberlan dot net>
- Date: Fri, 21 Sep 2001 15:17:57 -0700
I'm trying to figure out the types of function arguments, but bonking.
Please help me understand what is going on here.
void set_nchicken( int n );
For the above function, I have a tree, t, with code FUNCTION_DECL.
TREE_VALUE (TYPE_ARG_TYPES (t)) returns a tree which should be the type of
the first argument. TYPE_NAME of that returns null. I was expecting a
TYPE_DECL who describes the name of the type.
Hrmph.