]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Feb 2013 20:16:16 +0000 (20:16 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 22 Feb 2013 20:16:16 +0000 (20:16 +0000)
commite14e3259a5708b84dc381f67f9421e96825b3bed
tree244dc0c0a65ced15f924b4dd001ab5f27fe3de43
parente2111f1d5eb8541722cebaf3d2e25511b19febda
MFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.

Now it outputs fixed files, which use constants provided by the C standard
library to determine appropriate values for the target machine.

Before, mksyntax inspected the host machine which resulted in subtle
breakage if e.g. char is signed on the host and unsigned on the target such
as when cross-compiling on x86 for ARM.

Submitted by: Christoph Mallon

git-svn-id: svn://svn.freebsd.org/base/stable/9@247163 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/mksyntax.c