From 2a1b33044119d74802d38de94b8e6a67880a7e73 Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Sun, 2 Jul 2006 00:57:14 +0000 Subject: [PATCH] Set limits for inlining functions. Obtained-from: FreeBSD --- sys/conf/bsd.kern.mk | 6 +++++- sys/conf/kern-i386.mk | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/conf/bsd.kern.mk b/sys/conf/bsd.kern.mk index 0f13121746..457660fec5 100644 --- a/sys/conf/bsd.kern.mk +++ b/sys/conf/bsd.kern.mk @@ -1,5 +1,5 @@ # $FreeBSD: src/share/mk/bsd.kern.mk,v 1.17.2.1 2001/08/01 16:56:56 obrien Exp $ -# $DragonFly: src/sys/conf/bsd.kern.mk,v 1.8 2006/07/02 00:55:08 corecode Exp $ +# $DragonFly: src/sys/conf/bsd.kern.mk,v 1.9 2006/07/02 00:57:14 corecode Exp $ # # Warning flags for compiling the kernel and components of the kernel. @@ -19,6 +19,10 @@ CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \ # of material assistance. # +CFLAGS+= -finline-limit=${INLINE_LIMIT} +CFLAGS+= --param inline-unit-growth=100 +CFLAGS+= --param large-function-growth=1000 + # Require the proper use of 'extern' for variables. -fno-common will # cause duplicate declarations to generate a link error. # diff --git a/sys/conf/kern-i386.mk b/sys/conf/kern-i386.mk index 581e163cfe..c8feaae663 100644 --- a/sys/conf/kern-i386.mk +++ b/sys/conf/kern-i386.mk @@ -1,4 +1,4 @@ -# $DragonFly: src/sys/conf/Attic/kern-i386.mk,v 1.1 2006/07/02 00:55:08 corecode Exp $ +# $DragonFly: src/sys/conf/Attic/kern-i386.mk,v 1.2 2006/07/02 00:57:14 corecode Exp $ # # On the i386, do not align the stack to 16-byte boundaries. Otherwise GCC # adds code to the entry and exit point of every function to align the @@ -15,3 +15,5 @@ CFLAGS+= -mpreferred-stack-boundary=2 CFLAGS+= -fno-stack-protector CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 + +INLINE_LIMIT= 8000 -- 2.41.0