summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/midipix.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c
index b194a33c3..5f4fe5145 100644
--- a/gcc/config/i386/midipix.c
+++ b/gcc/config/i386/midipix.c
@@ -535,7 +535,11 @@ int midipix_symbol_ref_dllimport_p(rtx symbol)
{
tree decl = SYMBOL_REF_DECL(symbol);
- return decl && decl->base.public_flag &&
- (!decl->decl_with_vis.visibility_specified
- || (decl->decl_with_vis.visibility == VISIBILITY_DEFAULT));
+ if (!decl || !decl->base.public_flag)
+ return 0;
+
+ if (decl->decl_with_vis.visibility == VISIBILITY_DEFAULT)
+ return (default_visibility == VISIBILITY_DEFAULT);
+
+ return 0;
}