diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-05 10:45:50 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-05 10:45:50 +0000 |
commit | 4d6e8371e510120a13afebac29ce4bcfb686f6f1 (patch) | |
tree | 65ad94bb8eb39f1b6d85b676a247c34c85e5c7dd /gcc/config/mips | |
parent | 6a425d2681538a8ce439a4b246ca640bf763cb1d (diff) | |
download | gcc-4d6e8371e510120a13afebac29ce4bcfb686f6f1.tar.gz |
* config/mips/mips.c (mips_expand_call): Don't allow laziy binding
for n32 & n64 abicalls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74324 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/mips.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index f73b1a97985..2ed6ab167bf 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -3187,7 +3187,13 @@ mips_expand_call (rtx result, rtx addr, rtx args_size, rtx aux, int sibcall_p) { if (!call_insn_operand (addr, VOIDmode)) { - if (TARGET_EXPLICIT_RELOCS && global_got_operand (addr, VOIDmode)) + /* If we're generating PIC, and this call is to a global function, + try to allow its address to be resolved lazily. This isn't + possible for NewABI sibcalls since the value of $gp on entry + to the stub would be our caller's gp, not ours. */ + if (TARGET_EXPLICIT_RELOCS + && !(sibcall_p && TARGET_NEWABI) + && global_got_operand (addr, VOIDmode)) { rtx high, lo_sum_symbol; |