aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-22 18:56:31 +0000
committerrsc <devnull@localhost>2005-07-22 18:56:31 +0000
commit3b8f0b79d7d53f84b1f9a8049f5ca205a1c8815a (patch)
treeb4ba341f0c8f7886efe4ae0c0223ae770019cc38 /bin/9c
parent14f06f6792b50ad91f86c08b3a72e9d57ed98330 (diff)
downloadplan9port-3b8f0b79d7d53f84b1f9a8049f5ca205a1c8815a.tar.gz
plan9port-3b8f0b79d7d53f84b1f9a8049f5ca205a1c8815a.tar.bz2
plan9port-3b8f0b79d7d53f84b1f9a8049f5ca205a1c8815a.zip
errors to stderr
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/9c b/bin/9c
index 3e8e66eb..17f8e654 100755
--- a/bin/9c
+++ b/bin/9c
@@ -28,6 +28,12 @@ case "$tag" in
cflags="$ngflags -g3 -no-cpp-precomp" ;;
*HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;;
*Linux*) usegcc
+ case "${CC9:-gcc}" in
+ tcc)
+ cc=tcc
+ cflags="-c -g"
+ ;;
+ esac
case "${SYSVERSION:-`uname -r`}" in
2.6.*)
cflags="$cflags -D__Linux26__"
@@ -63,6 +69,6 @@ status=$?
grep -v '__p9l_autolib_' $xtmp |
egrep -v ': error: .Each undeclared identifier|: error: for each function it appears|: In function `|: At top level:' |
sed 's/ .first use in this function.$//; s/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |
-uniq
+uniq 1>&2
rm -f $xtmp $xtmp.status
exit $status