mips.c (mips_global_pointer): Check call_really_used_regs instead of call_used_regs.
commit04910611bd80c3cf5b96405c58942b6f80f96fc3
authorRichard Sandiford <richard@codesourcery.com>
Mon, 10 Sep 2007 15:21:18 +0000 (10 15:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 10 Sep 2007 15:21:18 +0000 (10 15:21 +0000)
tree84b52cb4914fe1d57662b286e0ad66d3b56a337f
parent7d8bed7be6a13f1c25743a1bc45361d9f4f3a662
mips.c (mips_global_pointer): Check call_really_used_regs instead of call_used_regs.

gcc/
* config/mips/mips.c (mips_global_pointer): Check
call_really_used_regs instead of call_used_regs.
(mips_save_reg_p): Likewise.  Save all call-saved registers
if current_function_saves_all_registers.  Fix indentation.
No longer treat $18 as a special case.
(compute_frame_size): Guard FPR loop with TARGET_HARD_FLOAT.

gcc/testsuite/
* gcc.target/mips/call-saved-1.c: New test.
* gcc.target/mips/call-saved-2.c: Likewise.
* gcc.target/mips/call-saved-3.c: Likewise.
* gcc.target/mips/mips.exp (setup_mips_tests): Set mips_gp64
instead of mips_mips64.  Set mips_fp64 too.
(is_gp32_flag): Return true for -mips1 and -mips2.
(dg-mips-options): Use mips_gp64 instead of mips_mips64.

From-SVN: r128347
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/call-saved-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/call-saved-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/call-saved-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/mips.exp