public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Error "pointer to unimplemented type"
@ 2009-10-13  7:29 prashant rawat
  2009-10-13  7:55 ` prashant rawat
  0 siblings, 1 reply; 2+ messages in thread
From: prashant rawat @ 2009-10-13  7:29 UTC (permalink / raw)
  To: gcc-bugs

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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Error "pointer to unimplemented type"
  2009-10-13  7:29 Error "pointer to unimplemented type" prashant rawat
@ 2009-10-13  7:55 ` prashant rawat
  0 siblings, 0 replies; 2+ messages in thread
From: prashant rawat @ 2009-10-13  7:55 UTC (permalink / raw)
  To: gcc-bugs

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.iitb@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!
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-13  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-13  7:29 Error "pointer to unimplemented type" prashant rawat
2009-10-13  7:55 ` prashant rawat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).