From: wcohen Date: Tue, 21 Aug 2001 12:17:28 +0000 (+0000) Subject: 2001-08-21 Will Cohen X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad0883d5a3f32e68868bf9d9e4d7c9716d80ae32;p=thirdparty%2Fgcc.git 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45076 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82411766053d..75ee05037867 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 c1ffe4a4f2b6..d12f581bae86 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 bc3f7889c7c1..27d1d4b5df1f 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) \