summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-22 18:26:08 -0500
committermidipix <writeonce@midipix.org>2019-02-23 12:53:49 -0500
commit04439cb53ac01c175ebf7d794e443e0227ed0bfd (patch)
treeb7dec5f5452068f1c530ef850557af945a4419c5
parentda3ab8b405378387b7551977f39383e496eb2491 (diff)
downloadcbb-gcc-4.6.4-04439cb53ac01c175ebf7d794e443e0227ed0bfd.tar.bz2
cbb-gcc-4.6.4-04439cb53ac01c175ebf7d794e443e0227ed0bfd.tar.xz
midipix_symbol_ref_dllimport_p(): properly distinguish between defs. and decls.
-rw-r--r--gcc/config/i386/midipix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c
index 8d17ad4bf..0e5753a1c 100644
--- a/gcc/config/i386/midipix.c
+++ b/gcc/config/i386/midipix.c
@@ -560,10 +560,8 @@ int midipix_symbol_ref_dllimport_p(rtx symbol)
if (!decl || !decl->base.public_flag)
return 0;
- if (decl->decl_with_vis.visibility == VISIBILITY_DEFAULT)
- return (default_visibility == VISIBILITY_DEFAULT);
-
- return 0;
+ return (decl->decl_with_vis.visibility == VISIBILITY_DEFAULT)
+ || !decl->decl_with_vis.visibility_specified;
}
bool midipix_asm_assemble_integer(rtx x, unsigned int size, int aligned_p)