This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: caller-save and i386
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: caller-save and i386
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 27 Feb 2001 20:04:12 -0800
- Cc: gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- References: <20010224013958.I7388@atrey.karlin.mff.cuni.cz>
On Sat, Feb 24, 2001 at 01:39:58AM +0100, Jan Hubicka wrote:
> * caller-save.c (reg_save_code, reg_restore_code): Index by mode, not
> NREGS.
> (insert_save, insert_restore): New parameter save_mode.
> (init_caller_save): Update initialization of reg_save_code
> and reg_restore_code.
> (save_call_clobbered_regs): Compute save_modes and update calls to
> reg_save_code and reg_restore_code.
> (insert_restore): Unsignetize numbers; use save_modes to choose mode
> of spill; update use of reg_restore_code.
> (insert_save): Likewise.
> * i386.h (HARD_REGNO_CALLER_SAVE_MODE): Update.
> * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
Ok.
r~