Re: [PATCH] Adjust subprogram DIE re-usal

2018-06-28 Thread Richard Biener
On Wed, 27 Jun 2018, Jason Merrill wrote: > On Tue, Jun 26, 2018 at 8:43 AM, Richard Biener wrote: > > > > A patch from Honza not LTO streaming DECL_ORIGINAL_TYPE ends up > > ICEing during LTO bootstrap because we end up not re-using the > > DIE we create late during LTRANS for a subprogram

Re: [PATCH] Adjust subprogram DIE re-usal

2018-06-27 Thread Jason Merrill
On Tue, Jun 26, 2018 at 8:43 AM, Richard Biener wrote: > > A patch from Honza not LTO streaming DECL_ORIGINAL_TYPE ends up > ICEing during LTO bootstrap because we end up not re-using the > DIE we create late during LTRANS for a subprogram because its > parent is a namespace rather than a CU DIE

Re: [PATCH] Adjust subprogram DIE re-usal

2018-06-26 Thread Jeff Law
On 06/26/2018 06:43 AM, Richard Biener wrote: > > A patch from Honza not LTO streaming DECL_ORIGINAL_TYPE ends up > ICEing during LTO bootstrap because we end up not re-using the > DIE we create late during LTRANS for a subprogram because its > parent is a namespace rather than a CU DIE (or a

[PATCH] Adjust subprogram DIE re-usal

2018-06-26 Thread Richard Biener
A patch from Honza not LTO streaming DECL_ORIGINAL_TYPE ends up ICEing during LTO bootstrap because we end up not re-using the DIE we create late during LTRANS for a subprogram because its parent is a namespace rather than a CU DIE (or a module). I'm wondering of the general reason why we