diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-28 16:24:00 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-28 16:24:00 +0000 |
commit | 301652e232285a4193a7190b5a266f391c726c05 (patch) | |
tree | 31cd8790a0faef2e8fb8e0fb385ee169d62d5f59 /gcc/regs.h | |
parent | a3dbed001246e313c8b47ef8902aeec332ae7214 (diff) | |
download | gcc-301652e232285a4193a7190b5a266f391c726c05.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40120 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regs.h')
-rw-r--r-- | gcc/regs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/regs.h b/gcc/regs.h index c219ecc4e20..08229666021 100644 --- a/gcc/regs.h +++ b/gcc/regs.h @@ -192,7 +192,7 @@ extern int caller_save_needed; /* Select a register mode required for caller save of hard regno REGNO. */ #ifndef HARD_REGNO_CALLER_SAVE_MODE -#define HARD_REGNO_CALLER_SAVE_MODE(REGNO, NREGS) \ +#define HARD_REGNO_CALLER_SAVE_MODE(REGNO, NREGS, MODE) \ choose_hard_reg_mode (REGNO, NREGS) #endif |