From 023e5ba41c59c0d898686a60f1d88cf0d460e113 Mon Sep 17 00:00:00 2001
From: midipix <writeonce@midipix.org>
Date: Sat, 2 Feb 2019 00:29:57 -0500
Subject: PE targets: do not confine the dllexport attribute to the default
 visibility.

---
 gcc/c-family/c-common.c | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'gcc')

diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c
index eaf129340..e5fbe0dff 100644
--- a/gcc/c-family/c-common.c
+++ b/gcc/c-family/c-common.c
@@ -6952,10 +6952,6 @@ handle_visibility_attribute (tree *node, tree name, tree args,
 	       && lookup_attribute ("dllimport", attributes))
 	error ("%qD was declared %qs which implies default visibility",
 	       decl, "dllimport");
-      else if (TARGET_DLLIMPORT_DECL_ATTRIBUTES
-	       && lookup_attribute ("dllexport", attributes))
-	error ("%qD was declared %qs which implies default visibility",
-	       decl, "dllexport");
     }
 
   DECL_VISIBILITY (decl) = vis;
-- 
cgit v1.2.3