Hi! On Tue, Feb 17, 2015 at 09:50:30AM +0100, Jan Hubicka wrote: > * varasm.c (default_binds_local_p_2): External definitions do not > count as definitions here.
That is PR65074, but rth prefers a different fix in that area. > --- varasm.c (revision 220741) > +++ varasm.c (working copy) > @@ -6831,7 +6831,8 @@ default_binds_local_p_2 (const_tree exp, > bool defined_locally = false; > if (symtab_node *node = symtab_node::get (exp)) > { > - if (node->definition || node->in_other_partition) > + if ((node->definition && !DECL_EXTERNAL (node->decl)) > + || node->in_other_partition) > { > defined_locally = true; > resolved_locally = (weak_dominate && !shlib); Jakub