svn commit: r203631 - user/imp/tbemd/sys/conf

Warner Losh imp at FreeBSD.org
Sun Feb 7 19:56:45 UTC 2010


Author: imp
Date: Sun Feb  7 19:56:45 2010
New Revision: 203631
URL: http://svn.freebsd.org/changeset/base/203631

Log:
  back out the hacks to try to shrink mips kernel.  They were good for
  only 10% in size...  But a quick test failed, so punt for the moment
  until I have more than 5 minutes to test the goofy thing.

Modified:
  user/imp/tbemd/sys/conf/kern.pre.mk
  user/imp/tbemd/sys/conf/kmod.mk

Modified: user/imp/tbemd/sys/conf/kern.pre.mk
==============================================================================
--- user/imp/tbemd/sys/conf/kern.pre.mk	Sun Feb  7 19:51:36 2010	(r203630)
+++ user/imp/tbemd/sys/conf/kern.pre.mk	Sun Feb  7 19:56:45 2010	(r203631)
@@ -24,7 +24,7 @@ SIZE?=		size
 COPTFLAGS?=	-O
 .else
 . if defined(DEBUG)
-_MINUS_O=	-Os
+_MINUS_O=	-O
 CTFFLAGS+=	-g
 . else
 _MINUS_O=	-O2
@@ -90,10 +90,10 @@ INCLUDES+= -I$S/dev/cxgb
 CFLAGS=	${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS}
 CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
 .if ${CC} != "icc"
-CFLAGS+= -fno-common -finline-limit=0
-CFLAGS+= --param inline-unit-growth=0
-CFLAGS+= --param large-function-growth=0
-WERROR?=
+CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
+CFLAGS+= --param inline-unit-growth=100
+CFLAGS+= --param large-function-growth=1000
+WERROR?= -Werror
 .endif
 
 # XXX LOCORE means "don't declare C stuff" not "for locore.s".

Modified: user/imp/tbemd/sys/conf/kmod.mk
==============================================================================
--- user/imp/tbemd/sys/conf/kmod.mk	Sun Feb  7 19:51:36 2010	(r203630)
+++ user/imp/tbemd/sys/conf/kmod.mk	Sun Feb  7 19:56:45 2010	(r203631)
@@ -108,8 +108,8 @@ CFLAGS+=	-I@/contrib/altq
 
 .if ${CC} != "icc"
 CFLAGS+=	-finline-limit=${INLINE_LIMIT}
-CFLAGS+= --param inline-unit-growth=32
-CFLAGS+= --param large-function-growth=128
+CFLAGS+= --param inline-unit-growth=100
+CFLAGS+= --param large-function-growth=1000
 .endif
 
 # Disallow common variables, and if we end up with commons from


More information about the svn-src-user mailing list