Re: Plan for gc-improv merge

2010-05-03 Thread Laurynas Biveinis
2010/4/27 Diego Novillo : > On 4/19/10 10:43 , Laurynas Biveinis wrote: > >> 1) New API in libiberty for creating of hash tables and splay trees >> with user-specified callbacks for allocation. Needs libiberty >> maintainer review. >> 2) Make gengtype accept variable_size GTY option and output type

Re: Plan for gc-improv merge

2010-04-27 Thread Diego Novillo
On 4/19/10 10:43 , Laurynas Biveinis wrote: > 1) New API in libiberty for creating of hash tables and splay trees > with user-specified callbacks for allocation. Needs libiberty > maintainer review. > 2) Make gengtype accept variable_size GTY option and output typed GC > allocators to gtype-desc.h

Re: Plan for gc-improv merge

2010-04-20 Thread Laurynas Biveinis
2010/4/20 Richard Guenther : > On Mon, Apr 19, 2010 at 4:43 PM, Laurynas Biveinis [...] >> from >> foo *x = (foo *)ggc_alloc (sizeof (x)); >> to >> foo *x = ggc_alloc_foo (); [...] > Sounds good to me.  With a typed interface we should know > the alignment requirements of allocations and so can pac

Re: Plan for gc-improv merge

2010-04-20 Thread Richard Guenther
On Mon, Apr 19, 2010 at 4:43 PM, Laurynas Biveinis wrote: > Hi, > > Now that GCC is in the stage1 and gc-improv branch work is finished as > I see it, I propose to merge it to mainline. > > The goal of the branch is to make the type of GC-allocated objects > known to GC at allocation time, by chan

Re: Plan for gc-improv merge

2010-04-19 Thread Laurynas Biveinis
2010/4/19 Basile Starynkevitch : > Laurynas Biveinis wrote: >> The goal of the branch is to make the type of GC-allocated objects >> known to GC at allocation time, by changing the allocation interface >> from >> foo *x = (foo *)ggc_alloc (sizeof (x)); >> to >> foo *x = ggc_alloc_foo (); > > Will t

Re: Plan for gc-improv merge

2010-04-19 Thread Basile Starynkevitch
Laurynas Biveinis wrote: Hi, Now that GCC is in the stage1 and gc-improv branch work is finished as I see it, I propose to merge it to mainline. The goal of the branch is to make the type of GC-allocated objects known to GC at allocation time, by changing the allocation interface from foo *x =