Subject: Re: mksyntax (Was: weird lossage with xcompile macppc -> sparc)
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-toolchain
Date: 10/31/2002 09:18:41
On Thu, 31 Oct 2002, Valeriy E. Ushakov wrote:

> I've just been bitten by this problem that Matthew Green reproted on
> September 21 (I was x-building macppc->hpcsh).
>
> So the problem is that bin/sh/Makefile defines:
>
> .if	(${MACHINE_ARCH} == "powerpc") || \
> 	(${MACHINE_CPU} == "arm")
> TARGET_CHARFLAG= -DTARGET_CHAR="unsigned char"
> .else
> TARGET_CHARFLAG= -DTARGET_CHAR="char"
> .endif
>
> So when mksyntax is run on an arm or ppc host, it gets compiled with
> TARGET_CHAR set to *host* own, unsgined, "char".  Using "signed char"
> for .else branch fixes this.

Fixed.

> I wonder if we care about host compilers that don't support "signed"?

I don't think so. I think signed has been around for a very long time.

Take care,

Bill