Subject: Re: mksyntax (Was: weird lossage with xcompile macppc -> sparc)
To: Valeriy E. Ushakov <>
From: David Laight <>
List: tech-toolchain
Date: 10/31/2002 18:13:11
> 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.

Actually mksyntax is truly broken for any serious cross builds!
- try building for an EBCDIC target, or one with 9 (or even 10)
bit characters.

gcc features could be used to build the tables.  However since
almost all the entries are 'WORD' (ie 0) creating them during
shell startup wouldn't be a big problem.

Indexing the table with unsigned chars would also help!
(In fact building the whole thing with unsigned chars would
help - except gcc would bleat at every printf.)


David Laight: