From: Kai Tietz Date: Mon, 25 Mar 2013 10:51:11 +0000 (+0100) Subject: predicates.md (local_symbolic_operand): Interpret dll-imported symbols as none-local. X-Git-Tag: releases/gcc-4.9.0~6890 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9216baf17876dbf07de3c63e3f0156e9e9469d65;p=thirdparty%2Fgcc.git predicates.md (local_symbolic_operand): Interpret dll-imported symbols as none-local. * config/i386/predicates.md (local_symbolic_operand): Interpret dll-imported symbols as none-local. From-SVN: r197033 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 264dd092338b..c782c0407744 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-03-25 Kai Tietz + + * config/i386/predicates.md (local_symbolic_operand): Interpret + dll-imported symbols as none-local. + 2013-03-25 Richard Biener * tree-ssa-loop-im.c (struct depend): Remove. diff --git a/gcc/config/i386/predicates.md b/gcc/config/i386/predicates.md index f5657b964a09..d098dc5423df 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;