]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r246522: sh: Simplify mksyntax and make it fit for cross-compiling.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Mar 2013 22:12:45 +0000 (22:12 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Mar 2013 22:12:45 +0000 (22:12 +0000)
commit247f9398a866634c2c224503396574541b34565e
treece13954b40a841dd5ddf7ea36829ef4a4cbdaf91
parentf3a25b2e54ec8d09f6f97fb1946be7e9832fd81c
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.

Tested by: ian (this patch)
Submitted by: Christoph Mallon (patch for head)

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