re PR target/57260 (Generated R_MIPS_GOT_MIPS relocation for direct function call...
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 15 May 2013 19:16:34 +0000 (19:16 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 15 May 2013 19:16:34 +0000 (19:16 +0000)
commite299a383a9334fe71492e54ccfa9888434d69d05
tree3d392484a1d49b2407852da42793dd5b4ea7c9d9
parent1e6cf26ea81901fb00daef06d74966bcacbd99eb
re PR target/57260 (Generated R_MIPS_GOT_MIPS relocation for direct function call while compiling with -O2 on MIPS N64)

gcc/
PR target/57260
* config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
sibling calls to functions that would normally be lazily bound,
unless $gp is call-clobbered.

gcc/testsuite/
PR target/57260
* gcc.target/mips/call-1.c: Restrict to o32.
* gcc.target/mips/call-5.c, gcc.target/mips/call-6.c: New test.

From-SVN: r198945
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/call-1.c
gcc/testsuite/gcc.target/mips/call-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/call-6.c [new file with mode: 0644]