Reduced the ifdef tangle for profiling by moving the unreachable

never-working parts for icc to the attic.

Fixed some nearby style bugs.
This commit is contained in:
Bruce Evans 2006-10-26 11:53:25 +00:00
parent 24076d138e
commit 1dcf308b1e

View File

@ -95,24 +95,14 @@ ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS}
.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1
.if ${CC} == "icc"
.error Profiling doesn't work with ICC yet.
.else
CFLAGS+= -DGPROF -falign-functions=16
.error "Profiling doesn't work with icc yet"
.endif
CFLAGS+= -DGPROF -falign-functions=16
.if ${PROFLEVEL} >= 2
CFLAGS+= -DGPROF4 -DGUPROF
. if ${CC} == "icc"
# XXX doesn't work yet
#PROF= -prof_gen
. else
PROF= -finstrument-functions -Wno-inline
. endif
.else
. if ${CC} == "icc"
PROF= -p
. else
PROF= -pg
. endif
.endif
.endif
DEFINED_PROF= ${PROF}