diff options
author | Will Cohen <wcohen@redhat.com> | 2001-08-21 12:17:28 +0000 |
---|---|---|
committer | William Cohen <wcohen@gcc.gnu.org> | 2001-08-21 12:17:28 +0000 |
commit | e9e4208a187d743548587023052a96b6e055d1bc (patch) | |
tree | f11964998df4aaf6f6b625af97b73cd67016061f /gcc | |
parent | 29d2c7a5fd673f8daa4a63c6d32c76a2ce42911b (diff) | |
download | gcc-e9e4208a187d743548587023052a96b6e055d1bc.zip gcc-e9e4208a187d743548587023052a96b6e055d1bc.tar.gz gcc-e9e4208a187d743548587023052a96b6e055d1bc.tar.bz2 |
alpha.h (CONDITIONAL_REGISTER_USAGE): Added local declaration of variable i.
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.
From-SVN: r45076
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/alpha/alpha.h | 12 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 1 |
3 files changed, 16 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8241176..75ee050 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/alpha/alpha.h b/gcc/config/alpha/alpha.h index c1ffe4a..d12f581 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 bc3f788..27d1d4b 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) \ |