aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /bin/9c
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/9c b/bin/9c
index 3ffb716c..20919e9a 100755
--- a/bin/9c
+++ b/bin/9c
@@ -14,6 +14,10 @@ usegcc()
-Wno-comment \
-Wno-sign-compare \
-Wno-unknown-pragmas \
+ -Wno-misleading-indentation \
+ -Wno-stringop-truncation \
+ -Wno-stringop-overflow \
+ -Wno-format-truncation \
-fno-omit-frame-pointer \
-fsigned-char \
"
@@ -79,9 +83,8 @@ useclang()
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
case "$tag" in
-*FreeBSD*gcc*) usegcc ;;
-*FreeBSD*clang*) useclang ;;
-*DragonFly*|*BSD*) usegcc ;;
+*DragonFly*gcc*|*BSD*gcc*) usegcc ;;
+*DragonFly*clang|*BSD*clang*) useclang ;;
*Darwin-x86_64*)
useclang
cflags="$ngflags -g3 -m64"
@@ -133,7 +136,7 @@ case "$tag" in
esac
# N.B. Must use temp file to avoid pipe; pipe loses status.
-xtmp=/tmp/9c.$$.$USER.out
+xtmp=${TMPDIR-/tmp}/9c.$$.$USER.out
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp
status=$?
quiet $xtmp