From: Adam Nemet Date: Tue, 21 Aug 2007 18:08:52 +0000 (+0000) Subject: predicates.md (const_call_insn_operand): Invoke SYMBOL_REF_LONG_CALL_P only on SYMBOL... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d363eb7e254b2c49d1e1fbabbf509c1ac50f3b6c;p=thirdparty%2Fgcc.git predicates.md (const_call_insn_operand): Invoke SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs. * config/mips/predicates.md (const_call_insn_operand): Invoke SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs. From-SVN: r127672 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 488170558081..426528bc924b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-08-21 Adam Nemet + + * config/mips/predicates.md (const_call_insn_operand): Invoke + SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs. + 2007-08-02 Andreas Krebbel * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg. diff --git a/gcc/config/mips/predicates.md b/gcc/config/mips/predicates.md index a96e01721495..509657e9f0fa 100644 --- a/gcc/config/mips/predicates.md +++ b/gcc/config/mips/predicates.md @@ -106,7 +106,9 @@ /* 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