diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-30 17:21:12 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-30 17:21:12 +0000 |
commit | a3a64825006605c8428533670ec28c73f8e3498b (patch) | |
tree | 93f07283cba47ba79d733a55522f62a33876cd47 /gcc/regs.h | |
parent | 2e6e4a81d9020053e22e490c330d2b372ac5e91d (diff) | |
download | gcc-a3a64825006605c8428533670ec28c73f8e3498b.tar.gz |
* regs.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
* caller-save.c (init_caller_save): Use it.
* tm.texi: Document HARD_REGNO_CALLER_SAVE_MODE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regs.h')
-rw-r--r-- | gcc/regs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/regs.h b/gcc/regs.h index e248665e9ba..02bdf92c1f5 100644 --- a/gcc/regs.h +++ b/gcc/regs.h @@ -211,6 +211,12 @@ extern int caller_save_needed; #define CLASS_LIKELY_SPILLED_P(CLASS) (reg_class_size[(int) (CLASS)] == 1) #endif +/* 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) \ + choose_hard_reg_mode (REGNO, NREGS) +#endif + /* Allocated in local_alloc. */ /* A list of SCRATCH rtl allocated by local-alloc. */ |