How is the pointer-to-pointer type taken care of in function walk_type ()?
If I modify the if statement of line 2014 (gengtype.c) to
if ((!t->u.p->kind == TYPE_POINTER) && ! UNION_OR_STRUCT_P (t->u.p)
                && t->u.p->kind != TYPE_PARAM_STRUCT)
it works fine.



On Tue, Oct 13, 2009 at 12:59 PM, prashant rawat
<prashantr.i...@gmail.com> wrote:
> Hello,
> While trying to add a field 'tree * var_list' to struct cgraph_node
> (defined in cgraph.h), I got an error
>
> ../../gcc-4.3.1/gcc/cgraph.h:128: field `(*x).var_list' is pointer to
> unimplemented type
>  ../../gcc-4.3.1/gcc/cgraph.h:128: field `(*x).var_list' is pointer to
> unimplemented type
>  ../../gcc-4.3.1/gcc/cgraph.h:128: field `(*x).var_list' is pointer to
> unimplemented type
>  make[3]: *** [s-gtype] Error 1
>
> This happened all the times I tried adding a pointer-to-pointer type
> data structure in cgraph_node.
> The error is generated in line 2020 of file gengtype.c.
> Did anyone else notice the same problem? Is it a potential bug?
> Thanks!
>

Reply via email to