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).
This commit is contained in:
Peter Wemm 2003-07-23 20:03:42 +00:00
parent 3462150083
commit 2a51529f7e
3 changed files with 7 additions and 1 deletions

View File

@ -53,6 +53,9 @@ PROF= -pg
.endif
DEFINED_PROF= ${PROF}
# WERROR?= -Werror
INLINE_LIMIT?= 2500
CFLAGS+= --param max-inline-insns-single=${INLINE_LIMIT}
# Put configuration-specific C flags last (except for ${PROF}) so that they
# can override the others.

View File

@ -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

View File

@ -36,7 +36,7 @@
TYPE="FreeBSD"
REVISION="5.1"
BRANCH="CURRENT"
BRANCH="XP"
RELEASE="${REVISION}-${BRANCH}"
VERSION="${TYPE} ${RELEASE}"