xref: /dragonfly/sys/platform/pc64/conf/kern.mk (revision d4ef6694)
1# $FreeBSD: src/sys/conf/kern.mk,v 1.52 2007/05/24 21:53:42 obrien Exp $
2
3#
4# Warning flags for compiling the kernel and components of the kernel.
5#
6# For x86_64, we explicitly prohibit the use of FPU, SSE and other SIMD
7# operations inside the kernel itself.  These operations are exclusively
8# reserved for user applications.
9#
10CFLAGS+=	-fno-stack-protector
11CFLAGS+=	-mcmodel=kernel -mno-red-zone -mfpmath=387
12
13CFLAGS+=	-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
14
15.if ${CCVER:Mgcc*}
16CFLAGS+=	-mpreferred-stack-boundary=4
17CFLAGS+=	-mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a \
18		-mno-sse5
19CFLAGS+=	-mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
20
21.if ${CCVER} == "gcc47"
22CFLAGS+=	-mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c
23CFLAGS+=	-mno-fma -mno-fma4
24CFLAGS+=	-mno-bmi -mno-bmi2
25CFLAGS+=	-mno-xop -mno-lwp -mno-lzcnt -mno-tbm
26.endif
27.endif
28
29CFLAGS+=	-msoft-float
30CFLAGS+=	-fno-asynchronous-unwind-tables -fno-omit-frame-pointer
31
32INLINE_LIMIT?=	8000
33