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: structures & param_structures in gengtype


2010/9/2 Basile Starynkevitch <basile@starynkevitch.net>:
> Hello Laurynas, Diego & all the list.
>
> A precise question about gengtype (the current trunk one)
>
> I have the impression that every member of the 'param_structs' variable
> in gengtype.c (viewed as a linked list of types linked thru their next
> field) is also a member of the 'structures' variable in gengtype.c
>
> Could you confirm that impression?

That's my recollection too.

> Bonus question, why?

IIRC, the shared data structures are created once, and just have
incoming pointers from both these two variables. IMHO that's
intuitive. Somebody else might have a better explanation, and if they
do, bonus points for you if you turn it into a comment inside
gengtype.c ;)


-- 
Laurynas


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