From ac2610bf4275ca4edec63ccc0f6ee53309c639c1 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Fri, 10 Aug 2007 22:11:43 +0000 Subject: [PATCH] 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: r127351 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/predicates.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e6e41a1f16..bc720174ac0 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 308dd636f57..e275283082c 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