--- linux-2.6.18.noarch/arch/i386/Makefile.orig 2007-11-20 13:49:03.000000000 -0500 +++ linux-2.6.18.noarch/arch/i386/Makefile 2007-12-11 14:07:34.000000000 -0500 @@ -45,6 +45,7 @@ cflags-y += -ffreestanding # Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use # a lot more stack due to the lack of sharing of stacklots: CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then echo $(call cc-option,-fno-unit-at-a-time); fi ;) +CFLAGS += -fno-inline-functions-called-once CFLAGS += $(cflags-y) --- linux-2.6.18.noarch/arch/x86_64/Makefile.orig 2007-11-20 13:49:07.000000000 -0500 +++ linux-2.6.18.noarch/arch/x86_64/Makefile 2007-12-11 14:09:14.000000000 -0500 @@ -58,6 +58,7 @@ cflags-y += $(call cc-option,-funit-at-a cflags-y += $(call cc-option,-mno-sse -mno-mmx -mno-sse2 -mno-3dnow,) CFLAGS += $(cflags-y) +CFLAGS += -fno-inline-functions-called-once CFLAGS_KERNEL += $(cflags-kernel-y) AFLAGS += -m64