aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-03-23 17:20:50 -0800
committerRichard Henderson <rth@gcc.gnu.org>2001-03-23 17:20:50 -0800
commit75e0407e0106071870ed320eb43ada92f00f9395 (patch)
tree59099e59b3b15efe0cc71c967e66fe37b60633c9
parentfa029f453a551f13f36cd997618629998696849e (diff)
downloadgcc-75e0407e0106071870ed320eb43ada92f00f9395.zip
gcc-75e0407e0106071870ed320eb43ada92f00f9395.tar.gz
gcc-75e0407e0106071870ed320eb43ada92f00f9395.tar.bz2
iris4.h (ASM_OUTPUT_ASCII): Rename local variables to avoid shadowing arguments.
* config/mips/iris4.h (ASM_OUTPUT_ASCII): Rename local variables to avoid shadowing arguments. From-SVN: r40804
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/iris4.h25
2 files changed, 18 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 08bdfae..1229a39 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-23 Richard Henderson <rth@redhat.com>
+
+ * config/mips/iris4.h (ASM_OUTPUT_ASCII): Rename local variables
+ to avoid shadowing arguments.
+
2001-03-23 Jakub Jelinek <jakub@redhat.com>
* varasm.c (make_decl_rtl): Don't append var_labelno discriminator
diff --git a/gcc/config/mips/iris4.h b/gcc/config/mips/iris4.h
index abdcda5..db50f37 100644
--- a/gcc/config/mips/iris4.h
+++ b/gcc/config/mips/iris4.h
@@ -1,5 +1,5 @@
/* Definitions of target machine for GNU compiler. Iris version 4.
- Copyright (C) 1991, 1993, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1991, 1993, 1999, 2001 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -30,15 +30,16 @@ Boston, MA 02111-1307, USA. */
/* Some assemblers have a bug that causes backslash escaped chars in .ascii
to be misassembled, so we just completely avoid it. */
#undef ASM_OUTPUT_ASCII
-#define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \
-do { \
- const unsigned char *s; \
- int i; \
- for (i = 0, s = (const unsigned char *)(PTR); i < (LEN); s++, i++) \
- { \
- if ((i % 8) == 0) \
- fputs ("\n\t.byte\t", (FILE)); \
- fprintf ((FILE), "%s0x%x", (i%8?",":""), (unsigned)*s); \
- } \
- fputs ("\n", (FILE)); \
+#define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \
+do { \
+ const unsigned char *s_ = (const unsigned char *)(PTR); \
+ unsigned len_ = (LEN); \
+ unsigned i_; \
+ for (i_ = 0; i_ < len_; s_++, i_++) \
+ { \
+ if ((i_ % 8) == 0) \
+ fputs ("\n\t.byte\t", (FILE)); \
+ fprintf ((FILE), "%s0x%x", (i_%8?",":""), *s_); \
+ } \
+ fputs ("\n", (FILE)); \
} while (0)