This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.4 PATCH: Fix IRIX 6 bootstrap failure


Zack Weinberg writes:

> I'd rather you put the cast in cb_ident, as this is likely to crop up
> on other targets as well.  cpplib's taste for unsigned char is
> supposed to be isolated to cpplib.

This is not currently a problem.  I've checked all other definitions of
ASM_OUTPUT_IDENT: they simply use fprintf.

Anyway, the patch below is currently bootstrapping on mips-sgi-irix6.5.  Ok
if it passes?

	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University


Tue Jul  8 15:09:16 2003  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>

	* c-lex.c (cb_ident): Cast cstr.text to const char *.

Index: gcc/c-lex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-lex.c,v
retrieving revision 1.207
diff -u -p -r1.207 c-lex.c
--- gcc/c-lex.c	5 Jul 2003 00:23:47 -0000	1.207
+++ gcc/c-lex.c	8 Jul 2003 20:25:04 -0000
@@ -184,7 +184,7 @@ cb_ident (cpp_reader *pfile ATTRIBUTE_UN
       cpp_string cstr = { 0, 0 };
       if (cpp_interpret_string (pfile, str, 1, &cstr, false))
 	{
-	  ASM_OUTPUT_IDENT (asm_out_file, cstr.text);
+	  ASM_OUTPUT_IDENT (asm_out_file, (const char *) cstr.text);
 	  free ((void *)cstr.text);
 	}
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]