| -fno-omit-frame-pointer \ |
| # want to put -fno-optimize-sibling-calls here but |
| # that option only works with gcc3+ it seems |
| tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}" |
| cflags="$ngflags -g3 -no-cpp-precomp" ;; |
| *HP-UX*) cc=cc; cflags="-g -O -c -Ae" ;; |
| case "${SYSVERSION:-`uname -r`}" in |
| cflags="$cflags -D__Linux26__" |
| *OSF1*) cc=cc; cflags="-g -O -c" ;; |
| cflags="-mt -g -O -c -xCC -D__sun__" |
| s=`echo $u$v | tr '. ' '__'` |
| cflags="$cflags -D__$s__" |
| s=`echo $u$v | tr '. ' '__'` |
| cflags="$cflags -D__$s__" |
| echo 9c does not know how to compile on "$tag" 1>&2 |
| # N.B. Must use temp file to avoid pipe; pipe loses status. |
| xtmp=/tmp/9c.$$.$USER.out |
| $cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" >$xtmp 2>&1 |
| grep -v '__p9l_autolib_' $xtmp | |
| sed 's/\"\([^\"][^\"]*\)\", line \([0-9][0-9]*\)/\1:\2/g' |