From: Jan Hubicka Date: Wed, 5 Feb 2014 20:42:37 +0000 (+0000) Subject: * gimple-fold.c (can_refer_decl_in_current_unit_p): Default visibility is safe. X-Git-Tag: releases/gcc-4.9.0~1072 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a33a931b5f6f8b766f6f06ab02d133f2e85fa8ae;p=thirdparty%2Fgcc.git * gimple-fold.c (can_refer_decl_in_current_unit_p): Default visibility is safe. From-SVN: r207523 --- 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.