Re: [PATCH] Fix PR46796

2011-12-19 Thread Jason Merrill
OK. Jason

[PATCH] Fix PR46796

2011-12-19 Thread Richard Guenther
This fixes one old and annyoing bug wrt LTO and debug-information. We pre-seed the LTO tree streamer cache with nodes from global_trees[] and friends, but this causes the type variant chain to become corrupt (in the sense that we do not merge TYPE_DECLs, so a get_qualified_type will fail to find a

Re: [PATCH] Fix PR46796

2011-12-12 Thread Richard Guenther
On Fri, 9 Dec 2011, Richard Guenther wrote: > > This fixes PR46796 by making sure the types in the type variant chain > can be looked up again using get_qualified_type. > > LTO bootstrap and regtest running on x86_64-unknown-linux-gnu. Actually I didn't like that patch very much and here is a m

[PATCH] Fix PR46796

2011-12-09 Thread Richard Guenther
This fixes PR46796 by making sure the types in the type variant chain can be looked up again using get_qualified_type. LTO bootstrap and regtest running on x86_64-unknown-linux-gnu. Richard. 2011-12-09 Richard Guenther PR lto/46796 * lto.c (uniquify_nodes): Merge TYPE_DECLs