fixed lint options; Added -O<num> option

This commit is contained in:
ceriel 1989-02-09 11:22:24 +00:00
parent 20bdcdb730
commit d26ae9524b
2 changed files with 9 additions and 2 deletions

View File

@ -7,7 +7,7 @@ SHARE=../share
LDFLAGS=-i LDFLAGS=-i
CPPFLAGS=-DVERBOSE -DNOTCOMPACT CPPFLAGS=-DVERBOSE -DNOTCOMPACT
CFLAGS=$(CPPFLAGS) -O CFLAGS=$(CPPFLAGS) -O
LINTFLAGS=-phbac LINTFLAGS=-hbac
all: all:

View File

@ -3,6 +3,7 @@ DDUMP=$TMP.dd.$$
PDUMP=$TMP.pd.$$ PDUMP=$TMP.pd.$$
PHASES='' PHASES=''
FLAGS='' FLAGS=''
LEVEL=xxx
EM=$1 EM=$1
shift shift
@ -26,12 +27,18 @@ do
-SP) PHASES="$PHASES sp " ; continue;; -SP) PHASES="$PHASES sp " ; continue;;
-BO) PHASES="$PHASES bo " ; continue;; -BO) PHASES="$PHASES bo " ; continue;;
-CJ) PHASES="$PHASES cj " ; continue;; -CJ) PHASES="$PHASES cj " ; continue;;
-O*) LEVEL=$A ; continue;;
-*) FLAGS="$FLAGS $A"; continue;; -*) FLAGS="$FLAGS $A"; continue;;
esac esac
done done
if test "$PHASES" if test "$PHASES"
then : then :
else PHASES='cj bo sp ' else
case $LEVEL in
-O2|xxx)PHASES='cj bo sp ' ;;
-O3) PHASES='cs sr cj bo sp ud lv ra ' ;;
*) PHASES='il cf caopt ic cf cs sr cj bo sp ud lv ra ' ;;
esac
fi fi
PASSES="ic cf $PHASES ca" PASSES="ic cf $PHASES ca"
OUTFILES="$PDUMP $DDUMP" OUTFILES="$PDUMP $DDUMP"