]> gcc.gnu.org Git - gcc.git/commitdiff
rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
authorRichard Henderson <rth@redhat.com>
Tue, 5 Mar 2002 04:31:12 +0000 (20:31 -0800)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Tue, 5 Mar 2002 04:31:12 +0000 (04:31 +0000)
2002-03-05  Richard Henderson  <rth@redhat.com>

        * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.

From-SVN: r50301

gcc/ChangeLog
gcc/config/rs6000/rs6000.h

index dee45a2967dfa300f8a20dd92866a53aeb6e3e71..dc43ba38ef55c7f4ae68d304f6f4dfa40cbbf631 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-05  Richard Henderson  <rth@redhat.com>
+
+        * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
+
 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
 
        * toplev.c (documented_lang_options): Document more
index 30c87bf5fa9794294b767ab78797576aa5e8ef6f..dfb19f5f4d497fe8d9d4940e1012d77fdb731a16 100644 (file)
@@ -742,7 +742,7 @@ extern int rs6000_altivec_abi;
 #define XER_REGNO    76
 #define FIRST_ALTIVEC_REGNO    77
 #define LAST_ALTIVEC_REGNO     108
-#define TOTAL_ALTIVEC_REGS     (LAST_ALTIVEC_REGNO - FIRST_ALTIVEC_REGNO)
+#define TOTAL_ALTIVEC_REGS     (LAST_ALTIVEC_REGNO - FIRST_ALTIVEC_REGNO + 1)
 #define VRSAVE_REGNO           109
 
 /* List the order in which to allocate registers.  Each register must be
This page took 0.089402 seconds and 5 git commands to generate.