Re: Relat TLS model merging in lto-symtab

2015-01-28 Thread Jakub Jelinek
On Wed, Jan 28, 2015 at 08:59:07PM +0100, Jan Hubicka wrote: > --- lto-symtab.c (revision 220212) > +++ lto-symtab.c (working copy) > @@ -158,11 +158,44 @@ lto_varpool_replace_node (varpool_node * > >if (vnode->tls_model != prevailing_node->tls_model) > { > - error_at (DEC

Relat TLS model merging in lto-symtab

2015-01-28 Thread Jan Hubicka
Hi, newer Firefox trees fails to build because jsmalloc contain variable that is declared as tls-initial-exec in one unit but used as tls-global-dynamic in others. As discussed with Jakub on IRC, the linker supports some model transitions, so we should do the same in symtab.c too. Bootstrapped/re