Re: GTY variable_size & documentation

2010-07-13 Thread Laurynas Biveinis
Hi, 2010/7/13 Basile Starynkevitch : >  The type machinery then provides allocators that take a parameter indicating > an exact size of object being allocated (like malloc does) > > and the exemple should better be > > >  Then the objects of struct sorted_fields_type are allocated in GC memory as

GTY variable_size & documentation

2010-07-13 Thread Basile Starynkevitch
Hello, in the trunk's documentation http://gcc.gnu.org/onlinedocs/gccint/GTY-Options.html I am reading: > variable_size > The type machinery expects the types to be of constant size. > When this is not true, for example, with structs that have > array fields or unions, th