From e9e4208a187d743548587023052a96b6e055d1bc Mon Sep 17 00:00:00 2001 From: Will Cohen Date: Tue, 21 Aug 2001 12:17:28 +0000 Subject: [PATCH] alpha.h (CONDITIONAL_REGISTER_USAGE): Added local declaration of variable i. 2001-08-21 Will Cohen * 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. From-SVN: r45076 --- gcc/ChangeLog | 7 +++++++ gcc/config/alpha/alpha.h | 12 ++++++++---- gcc/config/rs6000/rs6000.h | 1 + 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82411766053..75ee0503786 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2001-08-21 Will Cohen + + * 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 * crtstuff.c: Fix thinko last change. Move list tails to start diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index c1ffe4a4f2b..d12f581bae8 100644 --- a/gcc/config/alpha/alpha.h +++ b/gcc/config/alpha/alpha.h @@ -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 diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index bc3f7889c7c..27d1d4b5df1 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -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) \ -- 2.30.2