]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gimple-fold.c (can_refer_decl_in_current_unit_p): Default visibility is safe.
authorJan Hubicka <hubicka@gcc.gnu.org>
Wed, 5 Feb 2014 20:42:37 +0000 (20:42 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 5 Feb 2014 20:42:37 +0000 (20:42 +0000)
From-SVN: r207523

gcc/gimple-fold.c

index 43b49f1dc170a4da716aa48362c8278d3e3e33d0..fc36e1535da2ab8092c19225b262881d73b2192a 100644 (file)
@@ -114,6 +114,7 @@ can_refer_decl_in_current_unit_p (tree decl, tree from_decl)
      unit may be in separate DSO and the symbol may be hidden.  */
   if (DECL_VISIBILITY_SPECIFIED (decl)
       && DECL_EXTERNAL (decl)
+      && DECL_VISIBILITY (decl) != VISIBILITY_DEFAULT
       && (!(snode = symtab_get_node (decl)) || !snode->in_other_partition))
     return false;
   /* When function is public, we always can introduce new reference.