summaryrefslogtreecommitdiffstats
path: root/sys/conf/kmod.mk
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-07-23 20:03:42 +0000
committerpeter <peter@FreeBSD.org>2003-07-23 20:03:42 +0000
commitd2d693aa23eaa893aab2598a5baa3cf6378164d9 (patch)
tree6491af179dfb1b8e48f9884d5cd6c26eb58576d3 /sys/conf/kmod.mk
parent2e85aa2ad26aea6dbebd0a0979204d6818d9629e (diff)
downloadFreeBSD-src-d2d693aa23eaa893aab2598a5baa3cf6378164d9.zip
FreeBSD-src-d2d693aa23eaa893aab2598a5baa3cf6378164d9.tar.gz
Provide a knob for raising the inline instruction estimate threshold and
set an initial value. This is aimed at getting us closer to being able to turn -Werror back on and we can adjust the settings later on. Yes, we could turn off -Wno-inline instead, but that would hide the effect of gcc's bogo-estimator ignoring inline (either rightly or wrongly).
Diffstat (limited to 'sys/conf/kmod.mk')
-rw-r--r--sys/conf/kmod.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index b25bfca..15b2e98 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -99,6 +99,9 @@ CFLAGS+= -I${DESTDIR}/usr/include
CFLAGS+= -I@/../include -I${DESTDIR}/usr/include
.endif # @
+INLINE_LIMIT?= 2500
+CFLAGS+= --param max-inline-insns-single=${INLINE_LIMIT}
+
# Disallow common variables, and if we end up with commons from
# somewhere unexpected, allocate storage for them in the module itself.
CFLAGS+= -fno-common
OpenPOWER on IntegriCloud