Re: Fix weakrefs and LTO

2013-05-15 Thread Jan Hubicka
Hi, my testcase unfortunately passes with plugin disabled only. With plugin enabled it hits a bug where we won't associate alais with its taerget across units and we optimize out the target as unused. Funilly enough this hits yet another bug in GNU LD that makes the testcase to run infinitely, wh

Re: Fix weakrefs and LTO

2013-05-14 Thread Jan Hubicka
> On Tue, May 14, 2013 at 11:12 AM, Jan Hubicka wrote: > > Hi, > > this patch fixes with weakrefs seen on building latest firefox. The > > problem is > > that currently we handle weakrefs as external variables/functions that > > makes us > > to merge them. In firefox there are two weakrefs wit

Re: Fix weakrefs and LTO

2013-05-14 Thread Richard Biener
On Tue, May 14, 2013 at 11:12 AM, Jan Hubicka wrote: > Hi, > this patch fixes with weakrefs seen on building latest firefox. The problem > is > that currently we handle weakrefs as external variables/functions that makes > us > to merge them. In firefox there are two weakrefs with different al