2001-08-21 Will Cohen <wcohen@redhat.com>
authorwcohen <wcohen@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2001 12:17:28 +0000 (12:17 +0000)
committerwcohen <wcohen@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Aug 2001 12:17:28 +0000 (12:17 +0000)
        * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
        declaration of variable i.
        * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
        declaration of variable i.

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

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

index 8241176..75ee050 100644 (file)
@@ -1,3 +1,10 @@
+2001-08-21  Will Cohen  <wcohen@redhat.com>
+
+        * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
+        declaration of variable i.
+        * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
+        declaration of variable i.
+
 2001-08-21  Richard Henderson  <rth@redhat.com>
 
        * crtstuff.c: Fix thinko last change.  Move list tails to start
index c1ffe4a..d12f581 100644 (file)
@@ -385,10 +385,14 @@ extern const char *alpha_mlat_string;     /* For -mmemory-latency= */
    On the Alpha, we use this to disable the floating-point registers when
    they don't exist.  */
 
-#define CONDITIONAL_REGISTER_USAGE     \
-  if (! TARGET_FPREGS)                 \
-    for (i = 32; i < 63; i++)          \
-      fixed_regs[i] = call_used_regs[i] = 1;
+#define CONDITIONAL_REGISTER_USAGE             \
+{                                              \
+  int i;                                       \
+  if (! TARGET_FPREGS)                         \
+    for (i = 32; i < 63; i++)                  \
+      fixed_regs[i] = call_used_regs[i] = 1;   \
+}
+
 
 /* Show we can debug even without a frame pointer.  */
 #define CAN_DEBUG_WITHOUT_FP
index bc3f788..27d1d4b 100644 (file)
@@ -820,6 +820,7 @@ extern int rs6000_debug_arg;                /* debug argument handling */
 
 #define CONDITIONAL_REGISTER_USAGE                                     \
 {                                                                      \
+  int i;                                                               \
   if (! TARGET_POWER)                                                  \
     fixed_regs[64] = 1;                                                        \
   if (TARGET_64BIT)                                                    \