This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.4 PATCH: Fix IRIX 6 bootstrap failure
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 8 Jul 2003 15:07:00 +0200 (MEST)
- Subject: 3.4 PATCH: Fix IRIX 6 bootstrap failure
mips-sgi-irix6.5 failed to bootstrap on mainline:
/vol/gnu/src/gcc/gcc-dist/gcc/c-lex.c: In function `cb_ident':
/vol/gnu/src/gcc/gcc-dist/gcc/c-lex.c:187: warning: pointer targets in initialization differ in signedness
This happens because cpp_string.text is const unsigned char *, while p in
mips.h's ASM_OUTPUT_IDENT (and strlen, assemble_string) expect a const char *.
The following patch fixes this and allowed bootstrap to finish on
mips-sgi-irix6.5.
Ok for mainline?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Mon Jul 7 21:03:56 2003 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* config/mips/mips.h (ASM_OUTPUT_IDENT): Cast STRING to const char *.
Index: gcc/config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.272
diff -u -p -r1.272 mips.h
--- gcc/config/mips/mips.h 3 Jul 2003 13:24:04 -0000 1.272
+++ gcc/config/mips/mips.h 8 Jul 2003 13:01:28 -0000
@@ -3844,7 +3844,7 @@ do { \
#undef ASM_OUTPUT_IDENT
#define ASM_OUTPUT_IDENT(FILE, STRING) \
{ \
- const char *p = STRING; \
+ const char *p = (const char *) STRING; \
int size = strlen (p) + 1; \
readonly_data_section (); \
assemble_string (p, size); \