Allow references to symbols with user specified DEFAULT bisibility

2014-02-03 Thread Jan Hubicka
Hi, while implementing checks in can_refer_decl_in_current_unit_p I had primarily symbols with HIDDEN visibility in mind. I just noticed that libstdc++ makes quite few symbols with default visbility specified by hand. I see no reason for disabling optimization here. Bootstrapped/regtested x86

Re: Allow references to symbols with user specified DEFAULT bisibility

2014-02-04 Thread Richard Biener
On Tue, 4 Feb 2014, Jan Hubicka wrote: > Hi, > while implementing checks in can_refer_decl_in_current_unit_p I had primarily > symbols > with HIDDEN visibility in mind. I just noticed that libstdc++ makes quite > few symbols > with default visbility specified by hand. I see no reason for disab