Skip to content

Commit

Permalink
[owc libc] Make signed char default for OpenWatcom C
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Mar 5, 2025
1 parent 35d5148 commit 83ac914
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions elks/tools/objtools/ewcc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ ELKSINCLUDE2=$TOPDIR/libc/include/watcom
# -mcmodel={s,m,c,l} # memory model
# -march=i86 # 8086 codegen
# -std=c99 # -Wc,-za99
# -fsigned-char # -Wc,-j plain char is signed (as gcc)
# -msoft-float # -Wc,-fpc (non-IEEE software fp)
# -Wc,-zev # enable void arithmetic
# -Wc,-zls # remove automatically inserted symbols
# -Wc,-wcd=N # disable warning N
Expand All @@ -42,11 +44,9 @@ ELKSINCLUDE2=$TOPDIR/libc/include/watcom
# -ztNum # specify far data threshold (default 32767, or 256 if no Num)
# -Wc,-fpi87 # generate inline 8087 hardware fp
# -mhard-emu-float # -Wc,-fpi (inline 8087 w/emulation)
# -msoft-float # -Wc,-fpc (non-IEEE software fp)
# -fpmath
# -fpmath=87 # produce code for 8087 FPU
# -mabi=cdecl # push all args
# -fnonconst-initializers # -Wc,aa
# -fsigned-char # plain char is signed (as gcc)

source $TOPDIR/libc/watcom.model

Expand All @@ -56,6 +56,7 @@ CCFLAGS="\
-march=i86 \
-Os \
-std=c99 \
-fsigned-char \
-msoft-float \
-Wc,-zev \
-Wc,-zls \
Expand Down
3 changes: 2 additions & 1 deletion libc/watcom.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ CARCH =\
-mcmodel=$(MODEL) \
-march=i86 \
-std=c99 \
-fno-stack-check \
-fsigned-char \
-msoft-float \
-fno-stack-check \
-Wc,-zev \
-Wc,-zls \
-Wc,-x \
Expand Down

0 comments on commit 83ac914

Please sign in to comment.