From: Adrian Bunk <bunk@fs.tum.de>




 Makefile            |    2 +-
 arch/arm/Makefile   |    2 --
 arch/h8300/Makefile |    2 +-
 3 files changed, 2 insertions(+), 4 deletions(-)

diff -puN arch/arm/Makefile~gcc-Os arch/arm/Makefile
--- 25/arch/arm/Makefile~gcc-Os	2003-10-18 04:06:41.000000000 -0700
+++ 25-akpm/arch/arm/Makefile	2003-10-18 04:06:41.000000000 -0700
@@ -14,8 +14,6 @@ OBJCOPYFLAGS	:=-O binary -R .note -R .co
 GZFLAGS		:=-9
 #CFLAGS		+=-pipe
 
-CFLAGS		:=$(CFLAGS:-O2=-Os)
-
 ifeq ($(CONFIG_FRAME_POINTER),y)
 CFLAGS		+=-fno-omit-frame-pointer -mapcs -mno-sched-prolog
 endif
diff -puN arch/h8300/Makefile~gcc-Os arch/h8300/Makefile
--- 25/arch/h8300/Makefile~gcc-Os	2003-10-18 04:06:41.000000000 -0700
+++ 25-akpm/arch/h8300/Makefile	2003-10-18 04:06:41.000000000 -0700
@@ -34,7 +34,7 @@ cflags-$(CONFIG_CPU_H8S)	:= -ms
 ldflags-$(CONFIG_CPU_H8S)	:= -mh8300self
 
 CFLAGS += $(cflags-y)
-CFLAGS += -mint32 -fno-builtin -Os
+CFLAGS += -mint32 -fno-builtin
 CFLAGS += -g
 CFLAGS += -D__linux__
 CFLAGS += -DUTS_SYSNAME=\"uClinux\"
diff -puN Makefile~gcc-Os Makefile
--- 25/Makefile~gcc-Os	2003-10-18 04:06:41.000000000 -0700
+++ 25-akpm/Makefile	2003-10-18 04:06:41.000000000 -0700
@@ -275,7 +275,7 @@ NOSTDINC_FLAGS  = -nostdinc -iwithprefix
 CPPFLAGS        := -D__KERNEL__ -Iinclude \
 		   $(if $(KBUILD_SRC),-Iinclude2 -I$(srctree)/include)
 
-CFLAGS 		:= -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
+CFLAGS 		:= -Wall -Wstrict-prototypes -Wno-trigraphs -Os \
 	  	   -fno-strict-aliasing -fno-common
 AFLAGS		:= -D__ASSEMBLY__
 

_