Re: Move DECL_INIT_PRIORITY/FINI_PRIORITY to symbol table

2014-06-22 Thread Jan Hubicka
> Jan Hubicka writes: > > > this patch moves init and fini priorities to symbol table instead of trees. > > They are already in on-side hashtables, but the hashtables are now maintaned > > by symbol table. This is needed for correctness with LTO. > > This breaks gcc.dg/initpri3.c. The construc

Re: Move DECL_INIT_PRIORITY/FINI_PRIORITY to symbol table

2014-06-21 Thread Andreas Schwab
Jan Hubicka writes: > this patch moves init and fini priorities to symbol table instead of trees. > They are already in on-side hashtables, but the hashtables are now maintaned > by symbol table. This is needed for correctness with LTO. This breaks gcc.dg/initpri3.c. The constructor and destru

Re: Move DECL_INIT_PRIORITY/FINI_PRIORITY to symbol table

2014-06-20 Thread Trevor Saunders
On Fri, Jun 20, 2014 at 08:41:22AM +0200, Jan Hubicka wrote: > Hi, > this patch moves init and fini priorities to symbol table instead of trees. > They are already in on-side hashtables, but the hashtables are now maintaned > by symbol table. This is needed for correctness with LTO. > > Currently

Move DECL_INIT_PRIORITY/FINI_PRIORITY to symbol table

2014-06-19 Thread Jan Hubicka
Hi, this patch moves init and fini priorities to symbol table instead of trees. They are already in on-side hashtables, but the hashtables are now maintaned by symbol table. This is needed for correctness with LTO. Currently tree merging may load declaration with priority and then ggc_free it cre