Deleted Added
full compact
kern.pre.mk (232322) kern.pre.mk (232473)
1# $FreeBSD: head/sys/conf/kern.pre.mk 232322 2012-02-29 22:58:51Z dim $
1# $FreeBSD: head/sys/conf/kern.pre.mk 232473 2012-03-03 18:58:15Z dim $
2
3# Part of a unified Makefile for building kernels. This part contains all
4# of the definitions that need to be before %BEFORE_DEPEND.
5
6.include <bsd.own.mk>
7
8# backwards compat option for older systems.
9MACHINE_CPUARCH?=${MACHINE_ARCH:C/mipse[lb]/mips/:C/armeb/arm/:C/powerpc64/powerpc/}

--- 19 unchanged lines hidden (view full) ---

29.else
30.if ${MACHINE_CPUARCH} == "powerpc"
31_MINUS_O= -O # gcc miscompiles some code at -O2
32.else
33_MINUS_O= -O2
34.endif
35.endif
36.if ${MACHINE_CPUARCH} == "amd64"
2
3# Part of a unified Makefile for building kernels. This part contains all
4# of the definitions that need to be before %BEFORE_DEPEND.
5
6.include <bsd.own.mk>
7
8# backwards compat option for older systems.
9MACHINE_CPUARCH?=${MACHINE_ARCH:C/mipse[lb]/mips/:C/armeb/arm/:C/powerpc64/powerpc/}

--- 19 unchanged lines hidden (view full) ---

29.else
30.if ${MACHINE_CPUARCH} == "powerpc"
31_MINUS_O= -O # gcc miscompiles some code at -O2
32.else
33_MINUS_O= -O2
34.endif
35.endif
36.if ${MACHINE_CPUARCH} == "amd64"
37.if ${MK_CLANG_IS_CC} == "no" && ${CC:T:Mclang} != "clang"
37.if ${CC:T:Mclang} != "clang" && (!defined(MK_CLANG_IS_CC) || ${MK_CLANG_IS_CC} == "no")
38COPTFLAGS?=-O2 -frename-registers -pipe
39.else
40COPTFLAGS?=-O2 -pipe
41.endif
42.else
43COPTFLAGS?=${_MINUS_O} -pipe
44.endif
45.if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)

--- 33 unchanged lines hidden (view full) ---

79
80# ... and the same for cxgb and cxgbe
81INCLUDES+= -I$S/dev/cxgb -I$S/dev/cxgbe
82
83.endif
84
85CFLAGS= ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS}
86CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
38COPTFLAGS?=-O2 -frename-registers -pipe
39.else
40COPTFLAGS?=-O2 -pipe
41.endif
42.else
43COPTFLAGS?=${_MINUS_O} -pipe
44.endif
45.if !empty(COPTFLAGS:M-O[23s]) && empty(COPTFLAGS:M-fno-strict-aliasing)

--- 33 unchanged lines hidden (view full) ---

79
80# ... and the same for cxgb and cxgbe
81INCLUDES+= -I$S/dev/cxgb -I$S/dev/cxgbe
82
83.endif
84
85CFLAGS= ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS}
86CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
87.if ${MK_CLANG_IS_CC} == "no" && ${CC:T:Mclang} != "clang"
87.if ${CC:T:Mclang} != "clang" && (!defined(MK_CLANG_IS_CC) || ${MK_CLANG_IS_CC} == "no")
88CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
89.if ${MACHINE_CPUARCH} != "mips"
90CFLAGS+= --param inline-unit-growth=100
91CFLAGS+= --param large-function-growth=1000
92.else
93# XXX Actually a gross hack just for Octeon because of the Simple Executive.
94CFLAGS+= --param inline-unit-growth=10000
95CFLAGS+= --param large-function-growth=100000

--- 86 unchanged lines hidden ---
88CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
89.if ${MACHINE_CPUARCH} != "mips"
90CFLAGS+= --param inline-unit-growth=100
91CFLAGS+= --param large-function-growth=1000
92.else
93# XXX Actually a gross hack just for Octeon because of the Simple Executive.
94CFLAGS+= --param inline-unit-growth=10000
95CFLAGS+= --param large-function-growth=100000

--- 86 unchanged lines hidden ---