mips-protos.h (mips_gp_save_slot): Remove.
authorRichard Sandiford <rsandifo@redhat.com>
Sun, 1 Aug 2004 11:17:36 +0000 (11:17 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sun, 1 Aug 2004 11:17:36 +0000 (11:17 +0000)
commitb73ce23b1dd70ef25f54d0dc4ecb5c6154bdb62f
treec251433a454204a66345776cefcca7e8724630a3
parentb828123e23c9a8fb42b98a54b34141fe4dace764
mips-protos.h (mips_gp_save_slot): Remove.

* config/mips/mips-protos.h (mips_gp_save_slot): Remove.
(mips_restore_gp): Declare.
* config/mips/mips.c (mips_add_offset): Add a scratch register
argument.  Reimplement in rtl only, reusing MIPS16 logic from
mips_output_mi_thunk.
(mips_legitimize_address, mips_legitimize_const_move): Adjust calls
to mips_add_offset.
(mips_gp_save_slot): Delete.
(mips_restore_gp): New function.
(mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
* config/mips/mips.md (exception_receiver): Turn into a
define_insn_and_split.  Use mips_restore_gp to do the split.
(call_internal, call_value_internal, call_value_multiple_internal): Use
mips_restore_gp to restore $gp.

From-SVN: r85404
gcc/ChangeLog
gcc/config/mips/mips-protos.h
gcc/config/mips/mips.c
gcc/config/mips/mips.md