summaryrefslogtreecommitdiff
path: root/gcc/tm.texi
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-30 17:21:12 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-30 17:21:12 +0000
commita3a64825006605c8428533670ec28c73f8e3498b (patch)
tree93f07283cba47ba79d733a55522f62a33876cd47 /gcc/tm.texi
parent2e6e4a81d9020053e22e490c330d2b372ac5e91d (diff)
downloadgcc-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/tm.texi')
-rw-r--r--gcc/tm.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tm.texi b/gcc/tm.texi
index ea3e8b3110a..a42eb67a619 100644
--- a/gcc/tm.texi
+++ b/gcc/tm.texi
@@ -3174,6 +3174,14 @@ this is worth doing, and 0 otherwise.
If you don't define this macro, a default is used which is good on most
machines: @code{4 * @var{calls} < @var{refs}}.
+
+@findex HARD_REGNO_CALLER_SAVE_MODE
+@item HARD_REGNO_CALLER_SAVE_MODE (@var{regno}, @var{nregs})
+A C expression specifying which mode is required for saving @var{nregs}
+of a pseudo-register in call-clobbered hard register @var{regno}. If
+@var{regno} is unsuitable for caller save, @code{VOIDmode} should be
+returned. For most machines this macro need not be defined since GCC
+will select the smallest suitable mode.
@end table
@node Function Entry