Re: [lto] Unify decl and type registration (issue4515186)

2011-06-07 Thread Richard Guenther
On Mon, 6 Jun 2011, Diego Novillo wrote: > On Mon, Jun 6, 2011 at 10:27, Diego Novillo wrote: > > On Mon, Jun 6, 2011 at 04:50, Richard Guenther wrote: > > > >> I'd have it done in the loop that computes canonical types, at this > >> place we do not gain the advantage that the decl register func

Re: [lto] Unify decl and type registration (issue4515186)

2011-06-06 Thread Diego Novillo
On Mon, Jun 6, 2011 at 13:02, Diego Novillo wrote: > On Mon, Jun 6, 2011 at 10:27, Diego Novillo wrote: >> On Mon, Jun 6, 2011 at 04:50, Richard Guenther wrote: >> >>> I'd have it done in the loop that computes canonical types, at this >>> place we do not gain the advantage that the decl registe

Re: [lto] Unify decl and type registration (issue4515186)

2011-06-06 Thread Diego Novillo
On Mon, Jun 6, 2011 at 10:27, Diego Novillo wrote: > On Mon, Jun 6, 2011 at 04:50, Richard Guenther wrote: > >> I'd have it done in the loop that computes canonical types, at this >> place we do not gain the advantage that the decl register functions >> get completely fixed up trees. > > Hm, yes,

Re: [lto] Unify decl and type registration (issue4515186)

2011-06-06 Thread Diego Novillo
On Mon, Jun 6, 2011 at 04:50, Richard Guenther wrote: > I'd have it done in the loop that computes canonical types, at this > place we do not gain the advantage that the decl register functions > get completely fixed up trees. Hm, yes, I had forgotten about the call to rest_of_decl_compilation.

Re: [lto] Unify decl and type registration (issue4515186)

2011-06-06 Thread Richard Guenther
On Fri, 3 Jun 2011, Diego Novillo wrote: > > As discussed in http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00063.html, > this patch moves decl registration in symbol tables to the LTO front > end. It makes type and symbol registration happen at the same time in > uniquify_nodes. > > Tested with

[lto] Unify decl and type registration (issue4515186)

2011-06-03 Thread Diego Novillo
As discussed in http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00063.html, this patch moves decl registration in symbol tables to the LTO front end. It makes type and symbol registration happen at the same time in uniquify_nodes. Tested with LTO profiledbootstrap on x86_64. Committed to trunk.