From: nemet Date: Fri, 10 Aug 2007 22:11:43 +0000 (+0000) Subject: * config/mips/predicates.md (const_call_insn_operand): Invoke X-Git-Tag: upstream/4.9.2~47020 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c10df75761603eb01153fc2272180f02427bd26;p=platform%2Fupstream%2Flinaro-gcc.git * config/mips/predicates.md (const_call_insn_operand): Invoke SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127351 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e6e41a..bc72017 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-08-10 Adam Nemet + + * config/mips/predicates.md (const_call_insn_operand): Invoke + SYMBOL_REF_LONG_CALL_P only on SYMBOL_REFs. + 2007-08-10 David Edelsohn PR target/33042 diff --git a/gcc/config/mips/predicates.md b/gcc/config/mips/predicates.md index 308dd63..e275283 100644 --- a/gcc/config/mips/predicates.md +++ b/gcc/config/mips/predicates.md @@ -115,7 +115,7 @@ /* If -mlong-calls or if this function has an explicit long_call attribute, we must use register addressing. The SYMBOL_FLAG_LONG_CALL bit is set by mips_encode_section_info. */ - return !SYMBOL_REF_LONG_CALL_P (op); + return !(GET_CODE (op) == SYMBOL_REF && SYMBOL_REF_LONG_CALL_P (op)); case SYMBOL_GOT_DISP: /* Without explicit relocs, there is no special syntax for