OSDN Git Service

2002-03-05 Richard Henderson <rth@redhat.com>
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Mar 2002 04:31:12 +0000 (04:31 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Mar 2002 04:31:12 +0000 (04:31 +0000)
        * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50301 138bc75d-0d04-0410-961f-82ee72b054a4

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

index dee45a2..dc43ba3 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 30c87bf..dfb19f5 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