summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/midipix.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/config/i386/midipix.c b/gcc/config/i386/midipix.c
index 5f4fe5145..6ba5ee8b9 100644
--- a/gcc/config/i386/midipix.c
+++ b/gcc/config/i386/midipix.c
@@ -134,15 +134,17 @@ void midipix_asm_generate_internal_label (
static void midipix_pe_create_got_entry(FILE * stream, const char * name, tree decl)
{
+ int visibility;
+
const char * ptrsize = TARGET_64BIT
? winnt_ptrsize_quad
: winnt_ptrsize_long;
- if (decl->decl_with_vis.visibility == VISIBILITY_DEFAULT)
- if (default_visibility != VISIBILITY_DEFAULT)
- return;
+ visibility = (decl->decl_with_vis.visibility == VISIBILITY_DEFAULT)
+ ? default_visibility
+ : decl->decl_with_vis.visibility;
- if (decl->decl_with_vis.visibility != VISIBILITY_DEFAULT)
+ if ((visibility == VISIBILITY_PROTECTED) || (visibility == VISIBILITY_INTERNAL))
return;
fputs("\n",stream);