]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
predicates.md (const_call_insn_operand): Invoke SYMBOL_REF_LONG_CALL_P only on SYMBOL...
authorAdam Nemet <anemet@caviumnetworks.com>
Tue, 21 Aug 2007 00:50:59 +0000 (00:50 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Tue, 21 Aug 2007 00:50:59 +0000 (00:50 +0000)
* config/mips/predicates.md (const_call_insn_operand): Invoke
SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.

From-SVN: r127658

gcc/ChangeLog
gcc/config/mips/predicates.md

index d9b36fa3f40125cd531939042c57e89c15e9087d..daead9fde743430ca79c321f187c38a20322c2cd 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-20  Adam Nemet  <anemet@caviumnetworks.com>
+
+       * config/mips/predicates.md (const_call_insn_operand): Invoke
+       SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs.
+
 2007-08-17  Chen liqin  <liqin@sunnorth.com.cn>
 
         * config/score/score.md : Update pattern tablejump.
index 9a6756c20a2f43769144efabbca968c8c8556b1e..bbc8e3cf813e0442a016c4d4f44f68befb536a3c 100644 (file)
       /* If -mlong-calls, force all calls to use register addressing.  Also,
         if this function has the long_call attribute, we must use register
         addressing.  */
-      return !TARGET_LONG_CALLS && !SYMBOL_REF_LONG_CALL_P (op);
+      return (!TARGET_LONG_CALLS
+             && !(GET_CODE (op) == SYMBOL_REF
+                  && SYMBOL_REF_LONG_CALL_P (op)));
 
     case SYMBOL_GOT_GLOBAL:
       /* Without explicit relocs, there is no special syntax for