summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-25 10:51:11 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-25 10:51:11 +0000
commited5a7307161cac275d3ad854aeec2862353bcdd2 (patch)
tree6f7214092d33abf82a069f3b0b743d27cf0d2e0f /gcc
parent69d7e12127b564168d95eee7df89a0db817e6b6c (diff)
downloadgcc-ed5a7307161cac275d3ad854aeec2862353bcdd2.tar.gz
* config/i386/predicates.md (local_symbolic_operand): Interpret
dll-imported symbols as none-local. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197033 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/predicates.md3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 264dd092338..c782c040774 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-25 Kai Tietz <ktietz@redhat.com>
+
+ * config/i386/predicates.md (local_symbolic_operand): Interpret
+ dll-imported symbols as none-local.
+
2013-03-25 Richard Biener <rguenther@suse.de>
* tree-ssa-loop-im.c (struct depend): Remove.
diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md
index f5657b964a0..d098dc5423d 100644
--- a/gcc/config/i386/predicates.md
+++ b/gcc/config/i386/predicates.md
@@ -436,6 +436,9 @@
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;
if (SYMBOL_REF_LOCAL_P (op))
return true;