summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2006-10-26 11:53:25 +0000
committerbde <bde@FreeBSD.org>2006-10-26 11:53:25 +0000
commit4bb6f6a7b4e77fac63e9ab5aef5fefc44a1daa77 (patch)
tree6ecebb52d248c2b5810f1df99037f72e5ae24f6f
parent55067e6cf7b8af77887d5fd1620da9fcc596ad9d (diff)
downloadFreeBSD-src-4bb6f6a7b4e77fac63e9ab5aef5fefc44a1daa77.zip
FreeBSD-src-4bb6f6a7b4e77fac63e9ab5aef5fefc44a1daa77.tar.gz
Reduced the ifdef tangle for profiling by moving the unreachable
never-working parts for icc to the attic. Fixed some nearby style bugs.
-rw-r--r--sys/conf/kern.pre.mk14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 5b00244..fd8e830 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -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}
OpenPOWER on IntegriCloud