diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-04-27 22:47:56 +0000 |
---|---|---|
committer | Bob Wilson <bwilson@gcc.gnu.org> | 2004-04-27 22:47:56 +0000 |
commit | f1dfe7049d4c81118be3e7e53c007cce8be81021 (patch) | |
tree | 2d5f39671b0e3bd55cda95a52cefd60f46068e50 /gcc/config/xtensa/xtensa.c | |
parent | 80408cac1637c8452c3b9f3a227d701b9d40641f (diff) | |
download | gcc-f1dfe7049d4c81118be3e7e53c007cce8be81021.zip gcc-f1dfe7049d4c81118be3e7e53c007cce8be81021.tar.gz gcc-f1dfe7049d4c81118be3e7e53c007cce8be81021.tar.bz2 |
xtensa.c (call_insn_operand): Check SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
* config/xtensa/xtensa.c (call_insn_operand): Check
SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
* config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
* config/xtensa/xtensa.md (call, call_value): Likewise.
From-SVN: r81228
Diffstat (limited to 'gcc/config/xtensa/xtensa.c')
-rw-r--r-- | gcc/config/xtensa/xtensa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index 6c059ff..d110368 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -572,7 +572,8 @@ call_insn_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) { tree callee, callee_sec, caller_sec; - if (GET_CODE (op) != SYMBOL_REF || !SYMBOL_REF_LOCAL_P (op)) + if (GET_CODE (op) != SYMBOL_REF + || !SYMBOL_REF_LOCAL_P (op) || SYMBOL_REF_EXTERNAL_P (op)) return FALSE; /* Don't attempt a direct call if the callee is known to be in |