diff options
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index f8b33d0..8b321af 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -5417,7 +5417,7 @@ default_binds_local_p_1 (exp, shlib) else if (! TREE_PUBLIC (exp)) local_p = true; /* A variable is local if the user tells us so. */ - else if (MODULE_LOCAL_P (exp)) + else if (decl_visibility (exp) != VISIBILITY_DEFAULT) local_p = true; /* Otherwise, variables defined outside this object may not be local. */ else if (DECL_EXTERNAL (exp)) |