s390.c (struct machine_function): New member last_restore_gpr.
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 16 Jun 2004 23:11:33 +0000 (23:11 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Wed, 16 Jun 2004 23:11:33 +0000 (23:11 +0000)
commitb767fc11d8fc76782a969535772caf9f6df95d68
tree5c9c44f71a62ae0043526c48627ee887254bcf5f
parent16865eaaa8898e0ea0e87e8516a17d5f95ab471b
s390.c (struct machine_function): New member last_restore_gpr.

* config/s390/s390.c (struct machine_function):  New member
last_restore_gpr.
(s390_frame_info): Add BASE_USED and RETURN_ADDR_USED parameters.
Do not modify machine->save_return_addr_p or regs_ever_live.
Fill in machine->last_restore_gpr.
(s390_optimize_prolog): Use s390_frame_info to compute registers
to save/restore, remove duplicated code.
(s390_arg_frame_offset): Use s390_frame_info to compute frame
size, remove duplicated code.
(s390_emit_prologue): Adapt s390_frame_info call.  Update
machine->save_return_addr_p and regs_ever_live.
(s390_emit_epilogue): Use machine->last_restore_gpr instead of
machine->last_save_gpr.

From-SVN: r83275
gcc/ChangeLog
gcc/config/s390/s390.c