predicates.md (local_symbolic_operand): Interpret dll-imported symbols as none-local.
authorKai Tietz <ktietz@redhat.com>
Mon, 25 Mar 2013 10:51:11 +0000 (11:51 +0100)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 25 Mar 2013 10:51:11 +0000 (11:51 +0100)
        * config/i386/predicates.md (local_symbolic_operand): Interpret
        dll-imported symbols as none-local.

From-SVN: r197033

gcc/ChangeLog
gcc/config/i386/predicates.md

index 264dd09..c782c04 100644 (file)
@@ -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.
index f5657b9..d098dc5 100644 (file)
   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;