This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4 PATCH: Fix IRIX 6 bootstrap failure
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 08 Jul 2003 07:49:12 -0700
- Subject: Re: 3.4 PATCH: Fix IRIX 6 bootstrap failure
- References: <16138.49652.67540.819556@xayide.TechFak.Uni-Bielefeld.DE>
Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> writes:
> 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?
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.
zw