From: ceriel Date: Thu, 9 Feb 1989 11:22:24 +0000 (+0000) Subject: fixed lint options; Added -O option X-Git-Tag: release-5-5~2600 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=dfca9ea600c2c136a6a0a5cee5947a7bc1705b3f;p=ack.git fixed lint options; Added -O option --- diff --git a/util/ego/em_ego/Makefile b/util/ego/em_ego/Makefile index f92698849..a0af8e002 100644 --- a/util/ego/em_ego/Makefile +++ b/util/ego/em_ego/Makefile @@ -7,7 +7,7 @@ SHARE=../share LDFLAGS=-i CPPFLAGS=-DVERBOSE -DNOTCOMPACT CFLAGS=$(CPPFLAGS) -O -LINTFLAGS=-phbac +LINTFLAGS=-hbac all: diff --git a/util/ego/em_ego/em_ego b/util/ego/em_ego/em_ego index e9a07b955..49bbe3407 100755 --- a/util/ego/em_ego/em_ego +++ b/util/ego/em_ego/em_ego @@ -3,6 +3,7 @@ DDUMP=$TMP.dd.$$ PDUMP=$TMP.pd.$$ PHASES='' FLAGS='' +LEVEL=xxx EM=$1 shift @@ -26,12 +27,18 @@ do -SP) PHASES="$PHASES sp " ; continue;; -BO) PHASES="$PHASES bo " ; continue;; -CJ) PHASES="$PHASES cj " ; continue;; + -O*) LEVEL=$A ; continue;; -*) FLAGS="$FLAGS $A"; continue;; esac done if test "$PHASES" 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 PASSES="ic cf $PHASES ca" OUTFILES="$PDUMP $DDUMP"