diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-10-24 19:48:51 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-10-24 19:48:51 +0000 |
commit | 9d73cc12c33dd41a08c85ca008684f8a10eeda61 (patch) | |
tree | 0c3be94c555c7568fb6ebf6d7f46f4abd1b0c829 /gcc/config | |
parent | 7751947bd429bac340da0ad697a8960648161db1 (diff) | |
download | gcc-9d73cc12c33dd41a08c85ca008684f8a10eeda61.zip gcc-9d73cc12c33dd41a08c85ca008684f8a10eeda61.tar.gz gcc-9d73cc12c33dd41a08c85ca008684f8a10eeda61.tar.bz2 |
bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
* mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
* mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
* mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
* mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
* mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
* mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.
From-SVN: r30146
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/mips/bsd-5.h | 4 | ||||
-rw-r--r-- | gcc/config/mips/iris4.h | 4 | ||||
-rw-r--r-- | gcc/config/mips/mips-5.h | 4 | ||||
-rw-r--r-- | gcc/config/mips/mips.h | 3 | ||||
-rw-r--r-- | gcc/config/mips/svr3-5.h | 4 | ||||
-rw-r--r-- | gcc/config/mips/svr4-5.h | 4 |
6 files changed, 12 insertions, 11 deletions
diff --git a/gcc/config/mips/bsd-5.h b/gcc/config/mips/bsd-5.h index f97af5e..f960515 100644 --- a/gcc/config/mips/bsd-5.h +++ b/gcc/config/mips/bsd-5.h @@ -55,9 +55,9 @@ Boston, MA 02111-1307, USA. */ #undef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ do { \ - unsigned char *s; \ + const unsigned char *s; \ int i; \ - for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ + for (i = 0, s = (const unsigned char *)(PTR); i < (LEN); s++, i++) \ { \ if ((i % 8) == 0) \ fputs ("\n\t.byte\t", (FILE)); \ diff --git a/gcc/config/mips/iris4.h b/gcc/config/mips/iris4.h index 604abc0..abdcda5 100644 --- a/gcc/config/mips/iris4.h +++ b/gcc/config/mips/iris4.h @@ -32,9 +32,9 @@ Boston, MA 02111-1307, USA. */ #undef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ do { \ - unsigned char *s; \ + const unsigned char *s; \ int i; \ - for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ + for (i = 0, s = (const unsigned char *)(PTR); i < (LEN); s++, i++) \ { \ if ((i % 8) == 0) \ fputs ("\n\t.byte\t", (FILE)); \ diff --git a/gcc/config/mips/mips-5.h b/gcc/config/mips/mips-5.h index f8b0941..225297d 100644 --- a/gcc/config/mips/mips-5.h +++ b/gcc/config/mips/mips-5.h @@ -34,9 +34,9 @@ Boston, MA 02111-1307, USA. */ #undef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ do { \ - unsigned char *s; \ + const unsigned char *s; \ int i; \ - for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ + for (i = 0, s = (const unsigned char *)(PTR); i < (LEN); s++, i++) \ { \ if ((i % 8) == 0) \ fputs ("\n\t.byte\t", (FILE)); \ diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index cf7e259..6e8ef76 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -4356,7 +4356,8 @@ do { \ #define ASM_OUTPUT_ASCII(STREAM, STRING, LEN) \ do { \ register int i, c, len = (LEN), cur_pos = 17; \ - register unsigned char *string = (unsigned char *)(STRING); \ + register const unsigned char *string = \ + (const unsigned char *)(STRING); \ fprintf ((STREAM), "\t.ascii\t\""); \ for (i = 0; i < len; i++) \ { \ diff --git a/gcc/config/mips/svr3-5.h b/gcc/config/mips/svr3-5.h index 495b389..603923d 100644 --- a/gcc/config/mips/svr3-5.h +++ b/gcc/config/mips/svr3-5.h @@ -77,9 +77,9 @@ Boston, MA 02111-1307, USA. */ #undef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ do { \ - unsigned char *s; \ + const unsigned char *s; \ int i; \ - for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ + for (i = 0, s = (const unsigned char *)(PTR); i < (LEN); s++, i++) \ { \ if ((i % 8) == 0) \ fputs ("\n\t.byte\t", (FILE)); \ diff --git a/gcc/config/mips/svr4-5.h b/gcc/config/mips/svr4-5.h index c214c7d..7cf2a8e 100644 --- a/gcc/config/mips/svr4-5.h +++ b/gcc/config/mips/svr4-5.h @@ -76,9 +76,9 @@ Boston, MA 02111-1307, USA. */ #undef ASM_OUTPUT_ASCII #define ASM_OUTPUT_ASCII(FILE,PTR,LEN) \ do { \ - unsigned char *s; \ + const unsigned char *s; \ int i; \ - for (i = 0, s = (unsigned char *)(PTR); i < (LEN); s++, i++) \ + for (i = 0, s = (const unsigned char *)(PTR); i < (LEN); s++, i++) \ { \ if ((i % 8) == 0) \ fputs ("\n\t.byte\t", (FILE)); \ |