Skip to content

Commit

Permalink
Support vbcc compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibara committed Dec 4, 2021
1 parent 18d5ab4 commit 182d9fc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -57,6 +57,7 @@ Supported compilers
* [CompCert](https://compcert.org/)
* [Nils Weller's C compiler](http://nwcc.sourceforge.net/)
* [cproc](https://sr.ht/~mcf/cproc/) (Currently requires a small tweak to ignore a volatile store error)
* [vbcc](http://www.compilers.de/vbcc.html) (Only tested on OpenBSD/i386)

Building with a compiler not listed here? Add it and send a pull request!

Expand Down
8 changes: 8 additions & 0 deletions configure
Expand Up @@ -963,6 +963,11 @@ else
echo "$cc"
fi

if [ "x$cc" = "xvc" ] ; then
echo "using vbcc, setting CFLAGS to -g -O=990"
cflags="-g -O=990 -DEMACS -DVI"
fi

if [ "x$cflags" = "x-DEMACS -DVI" ] ; then
printf "checking if the compiler accepts -g -O2... "
defaultcflagscheck
Expand Down Expand Up @@ -1030,6 +1035,9 @@ case "x$os" in
"xnwcc")
ldflags="$ldflags -Wl,-nopie"
;;
"xvc")
cflags="$cflags -D_ANSI_LIBRARY"
;;
esac
;;
"xAIX"|"xOS400")
Expand Down
2 changes: 1 addition & 1 deletion emacs.c
Expand Up @@ -277,7 +277,7 @@ static const struct x_ftab x_ftab[] = {
{ 0, 0, 0 },
};

int
static int
isu8cont(unsigned char c)
{
return (c & (0x80 | 0x40)) == 0x80;
Expand Down

0 comments on commit 182d9fc

Please sign in to comment.