diff options
author | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-02-05 20:42:37 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2014-02-05 20:42:37 +0000 |
commit | a33a931b5f6f8b766f6f06ab02d133f2e85fa8ae (patch) | |
tree | 1c3e49003d17aae103cfba4cd519066551a05990 /gcc/gimple-fold.c | |
parent | 7b1cd42745480867c3cea144595b76914eca7d6a (diff) | |
download | gcc-a33a931b5f6f8b766f6f06ab02d133f2e85fa8ae.zip gcc-a33a931b5f6f8b766f6f06ab02d133f2e85fa8ae.tar.gz gcc-a33a931b5f6f8b766f6f06ab02d133f2e85fa8ae.tar.bz2 |
* gimple-fold.c (can_refer_decl_in_current_unit_p): Default visibility is safe.
From-SVN: r207523
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 43b49f1..fc36e15 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. |