This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch: total_altivec_regs


richard was kind enough to fix a bootstrap problem for linuxppcaltivec.

committed mainline and branch.

thanks richard.

2002-03-05  Richard Henderson  <rth@redhat.com>

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

Index: config/rs6000/rs6000.h
===================================================================
RCS file: /cvs/uberbaum/gcc/config/rs6000/rs6000.h,v
retrieving revision 1.192
diff -c -p -r1.192 rs6000.h
*** rs6000.h	2002/03/03 21:10:03	1.192
--- rs6000.h	2002/03/05 04:28:01
*************** extern int rs6000_altivec_abi;
*** 742,748 ****
  #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 VRSAVE_REGNO		109
  
  /* List the order in which to allocate registers.  Each register must be
--- 742,748 ----
  #define XER_REGNO    76
  #define FIRST_ALTIVEC_REGNO	77
  #define LAST_ALTIVEC_REGNO	108
! #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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]