]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tm.texi (HARD_REGNO_NREGS): Note that this macro must not return zero.
authorDJ Delorie <dj@redhat.com>
Mon, 21 Jan 2008 22:20:57 +0000 (17:20 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Mon, 21 Jan 2008 22:20:57 +0000 (17:20 -0500)
* doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
return zero.

From-SVN: r131703

gcc/ChangeLog
gcc/doc/tm.texi

index 27865796e17b5cb79efae4891e9d46d4588afef4..873cdd476e09c2b9efc721b61eaab17d872cfdf5 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-21  DJ Delorie  <dj@redhat.com>
+
+       * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
+       return zero.
+
 2008-01-21  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/34856
index 00dde97ad25e7f20f218c90fb12a09ac991815c8..89d43026f895eefaf9cbec47523386353532fe8d 100644 (file)
@@ -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