summaryrefslogtreecommitdiffstats
path: root/sys/conf/kern.pre.mk
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-04-19 18:09:21 +0000
committerdim <dim@FreeBSD.org>2011-04-19 18:09:21 +0000
commit738c7248a6efaacd02c3b054f4ff1070318a2801 (patch)
treebf490762e6f5159fe9ae8044c4da5fb3f5693a76 /sys/conf/kern.pre.mk
parent2ac9648c294cc9f30b41241d80b36ccca4214e85 (diff)
downloadFreeBSD-src-738c7248a6efaacd02c3b054f4ff1070318a2801.zip
FreeBSD-src-738c7248a6efaacd02c3b054f4ff1070318a2801.tar.gz
Remove support for the Intel C Compiler from the build infrastructure.
This support has not worked for several years, and is not likely to work again, unless Intel decides to release a native FreeBSD version of their compiler. ;)
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r--sys/conf/kern.pre.mk32
1 files changed, 7 insertions, 25 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 4deaea8..61e22be 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -23,38 +23,25 @@ NM?= nm
OBJCOPY?= objcopy
SIZE?= size
-.if ${CC:T:Micc} == "icc"
-COPTFLAGS?= -O
-.else
-. if defined(DEBUG)
+.if defined(DEBUG)
_MINUS_O= -O
CTFFLAGS+= -g
-. else
+.else
_MINUS_O= -O2
-. endif
-. if ${MACHINE_CPUARCH} == "amd64"
+.endif
+.if ${MACHINE_CPUARCH} == "amd64"
COPTFLAGS?=-O2 -frename-registers -pipe
-. else
+.else
COPTFLAGS?=${_MINUS_O} -pipe
-. endif
-. if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
+.endif
+.if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)
COPTFLAGS+= -fno-strict-aliasing
-. endif
.endif
.if !defined(NO_CPU_COPTFLAGS)
-. if ${CC:T:Micc} == "icc"
-COPTFLAGS+= ${_ICC_CPUCFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
-. else
COPTFLAGS+= ${_CPUCFLAGS}
-. endif
.endif
-.if ${CC:T:Micc} == "icc"
-C_DIALECT=
-NOSTDINC= -X
-.else
C_DIALECT= -std=c99
NOSTDINC= -nostdinc
-.endif
INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S
@@ -89,7 +76,6 @@ INCLUDES+= -I$S/dev/cxgb -I$S/dev/cxgbe
CFLAGS= ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS}
CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
-.if ${CC:T:Micc} != "icc"
.if ${CC:T:Mclang} != "clang"
CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
.if ${MACHINE_CPUARCH} != "mips"
@@ -103,15 +89,11 @@ CFLAGS+= --param max-inline-insns-single=10000
.endif
.endif
WERROR?= -Werror
-.endif
# XXX LOCORE means "don't declare C stuff" not "for locore.s".
ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS}
.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1
-.if ${CC:T:Micc} == "icc"
-.error "Profiling doesn't work with icc"
-.endif
CFLAGS+= -DGPROF -falign-functions=16
.if ${PROFLEVEL} >= 2
CFLAGS+= -DGPROF4 -DGUPROF
OpenPOWER on IntegriCloud