From a33a931b5f6f8b766f6f06ab02d133f2e85fa8ae Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 5 Feb 2014 20:42:37 +0000 Subject: [PATCH] * gimple-fold.c (can_refer_decl_in_current_unit_p): Default visibility is safe. From-SVN: r207523 --- gcc/gimple-fold.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 43b49f1dc170..fc36e1535da2 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -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. -- 2.47.2