From 79e168dac0b4bf59e815bee45d0b0146441f2471 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 21 Jan 2008 17:20:57 -0500 Subject: [PATCH] tm.texi (HARD_REGNO_NREGS): Note that this macro must not return zero. * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not return zero. From-SVN: r131703 --- gcc/ChangeLog | 5 +++++ gcc/doc/tm.texi | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 27865796e17..873cdd476e0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-21 DJ Delorie + + * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not + return zero. + 2008-01-21 Richard Guenther PR middle-end/34856 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 00dde97ad25..89d43026f89 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -2079,7 +2079,9 @@ consecutive registers are needed for a given mode. @defmac HARD_REGNO_NREGS (@var{regno}, @var{mode}) A C expression for the number of consecutive hard registers, starting at register number @var{regno}, required to hold a value of mode -@var{mode}. +@var{mode}. This macro must never return zero, even if a register +cannot hold the requested mode - indicate that with HARD_REGNO_MODE_OK +and/or CANNOT_CHANGE_MODE_CLASS instead. On a machine where all registers are exactly one word, a suitable definition of this macro is