From 1daf4caa69474e9a532c6daa473122ed9c7bc4cb Mon Sep 17 00:00:00 2001 From: aldyh Date: Tue, 5 Mar 2002 04:31:12 +0000 Subject: [PATCH] 2002-03-05 Richard Henderson * 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 | 4 ++++ gcc/config/rs6000/rs6000.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dee45a2..dc43ba3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-03-05 Richard Henderson + + * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error. + 2002-03-04 Geoffrey Keating * toplev.c (documented_lang_options): Document more diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 30c87bf..dfb19f5 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -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 -- 2.7.4