caller-save.c (reg_save_code, [...]): Index by mode, not NREGS.
authorJan Hubicka <jh@suse.cz>
Wed, 28 Feb 2001 16:24:00 +0000 (17:24 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 28 Feb 2001 16:24:00 +0000 (16:24 +0000)
commit787dc84216bdf0def91f8e2fa3bbb15415959af3
tree31cd8790a0faef2e8fb8e0fb385ee169d62d5f59
parentdc2698bc26065d3300ca0353f92c00f4f0a1496b
caller-save.c (reg_save_code, [...]): Index by mode, not NREGS.

* 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.
* c4x.h (HARD_REGNO_CALLER_SAVE_MODE): Update.
* regs.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.

From-SVN: r40120
gcc/ChangeLog
gcc/caller-save.c
gcc/config/c4x/c4x.h
gcc/config/i386/i386.h
gcc/regs.h