From 1c052ff9faccdf1cdae6dc93119cb65730920225 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Wed, 28 Jul 2004 06:07:02 +0000 Subject: [PATCH] Allow for aggressive function inlining. This might have to be fine-tuned later. --- sys/conf/kern.pre.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index dc5e2083448..98d1c736c67 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -70,6 +70,8 @@ COPTS= ${INCLUDES} -D_KERNEL -include opt_global.h CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} .if ${CC} != "icc" CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} +CFLAGS+= --param inline-unit-growth=100 +CFLAGS+= --param large-function-growth=1000 WERROR?= -Werror .endif @@ -88,7 +90,7 @@ CFLAGS+= -DGPROF4 -DGUPROF # XXX doesn't work yet #PROF= -prof_gen . else -PROF= -finstrument-functions +PROF= -finstrument-functions -Wno-inline . endif .else . if ${CC} == "icc"