From d2d693aa23eaa893aab2598a5baa3cf6378164d9 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 23 Jul 2003 20:03:42 +0000 Subject: 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). --- sys/conf/kmod.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/conf/kmod.mk') 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 -- cgit v1.1