summaryrefslogtreecommitdiffstats
path: root/0015-handle-dllimport-properly-in-medium-model.patch
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-02-21 18:56:00 -0600
committerYaakov Selkowitz <yselkowi@redhat.com>2016-02-21 18:56:00 -0600
commit2426323bbdcaf8d5904f1f243bb2a5066dd21c8a (patch)
tree21ab325f116ab50e84ac20a77bbaf569eb56a469 /0015-handle-dllimport-properly-in-medium-model.patch
parentd9caede9a622bfa41c984c4685a7b185421c96d7 (diff)
downloadcygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.tar.gz
cygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.tar.xz
cygwin-gcc-2426323bbdcaf8d5904f1f243bb2a5066dd21c8a.zip
cygwin-gcc 5.3.0
Diffstat (limited to '0015-handle-dllimport-properly-in-medium-model.patch')
-rw-r--r--0015-handle-dllimport-properly-in-medium-model.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/0015-handle-dllimport-properly-in-medium-model.patch b/0015-handle-dllimport-properly-in-medium-model.patch
deleted file mode 100644
index 4de830e..0000000
--- a/0015-handle-dllimport-properly-in-medium-model.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 508940bebe9d116a1452c1c0b515201929d0738f Mon Sep 17 00:00:00 2001
-From: Jonathan Yong <10walls@gmail.com>
-Date: Sat, 28 Jun 2014 09:52:21 +0800
-Subject: [PATCH 15/24] handle dllimport properly in medium model
-
----
- gcc/config/i386/predicates.md | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
-index 2ef1384..3fc6104 100644
---- a/gcc/config/i386/predicates.md
-+++ b/gcc/config/i386/predicates.md
-@@ -164,6 +164,7 @@
- switch (XINT (XEXP (op, 0), 1))
- {
- case UNSPEC_GOTPCREL:
-+ if (TARGET_PECOFF) break;
- case UNSPEC_DTPOFF:
- case UNSPEC_GOTNTPOFF:
- case UNSPEC_NTPOFF:
-@@ -268,6 +269,10 @@
- /* TLS symbols are not constant. */
- if (SYMBOL_REF_TLS_MODEL (op))
- return false;
-+ /* Dll-imported symbols are always external. */
-+ if (TARGET_DLLIMPORT_DECL_ATTRIBUTES && SYMBOL_REF_DLLIMPORT_P (op))
-+ return false;
-+
- return (ix86_cmodel == CM_SMALL
- || (ix86_cmodel == CM_MEDIUM
- && !SYMBOL_REF_FAR_ADDR_P (op)));
---
-2.1.1
-