patch-2.4.13 linux/fs/reiserfs/Makefile
Next file: linux/fs/reiserfs/README
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Fri Oct 12 14:19:28 2001
-  Orig file: 
v2.4.12/linux/fs/reiserfs/Makefile
-  Orig date: 
Mon Jan 15 12:42:32 2001
diff -u --recursive --new-file v2.4.12/linux/fs/reiserfs/Makefile linux/fs/reiserfs/Makefile
@@ -13,6 +13,16 @@
 
 obj-m   := $(O_TARGET)
 
+# gcc -O2 (the kernel default)  is overaggressive on ppc when many inline
+# functions are used.  This causes the compiler to advance the stack
+# pointer out of the available stack space, corrupting kernel space,
+# and causing a panic. Since this behavior only affects ppc, this ifeq
+# will work around it. If any other architecture displays this behavior,
+# add it here.
+ifeq ($(shell uname -m),ppc) 
+EXTRA_CFLAGS := -O1
+endif
+
 include $(TOPDIR)/Rules.make
 
 TAGS:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)