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]

PATCH: Declare "i" in CONDITIONAL_REGISTER_USAGE in pa.h


Noticed this fix on a couple of other ports recently.  Bootstrap and
regression checked on hppa1.1-hp-hpux10.20 with gcc 3.1.

OK?

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2001-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
	variable i.
	* pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
	
--- pa32-regs.h.orig	Wed May 16 15:39:26 2001
+++ pa32-regs.h	Mon Aug 20 23:15:26 2001
@@ -97,6 +97,7 @@
 
 #define CONDITIONAL_REGISTER_USAGE \
 {						\
+  int i;					\
   if (!TARGET_PA_11)				\
     {						\
       for (i = 56; i < 88; i++) 		\
--- pa64-regs.h.orig	Fri Apr 13 01:12:12 2001
+++ pa64-regs.h	Mon Aug 20 23:16:04 2001
@@ -103,6 +103,7 @@
 
 #define CONDITIONAL_REGISTER_USAGE \
 {						\
+  int i;					\
   if (TARGET_DISABLE_FPREGS || TARGET_SOFT_FLOAT)\
     {						\
       for (i = FP_REG_FIRST; i < FP_REG_LAST; i++)\


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