[PATCH] ppc64: remove hidden -fno-omit-frame-pointer for schedule.c
Anton Blanchard
anton at samba.org
Sun May 1 19:26:42 EST 2005
Hi,
While looking at code generated by gcc4.0 I noticed some functions still
had frame pointers, even after we stopped ppc64 from defining
CONFIG_FRAME_POINTER. It turns out kernel/Makefile hardwires
-fno-omit-frame-pointer on when compiling schedule.c.
It was already disabled on ia64, disable it on ppc64 as well.
Signed-off-by: Anton Blanchard <anton at samba.org>
Index: linux-2.6.12-rc2/kernel/Makefile
===================================================================
--- linux-2.6.12-rc2.orig/kernel/Makefile 2005-04-19 13:37:40.599016667 +1000
+++ linux-2.6.12-rc2/kernel/Makefile 2005-05-01 05:48:00.689299680 +1000
@@ -33,6 +33,7 @@
obj-$(CONFIG_SECCOMP) += seccomp.o
ifneq ($(CONFIG_IA64),y)
+ifneq ($(CONFIG_PPC64),y)
# According to Alan Modra <alan at linuxcare.com.au>, the -fno-omit-frame-pointer is
# needed for x86 only. Why this used to be enabled for all architectures is beyond
# me. I suspect most platforms don't need this, but until we know that for sure
@@ -40,6 +41,7 @@
# to get a correct value for the wait-channel (WCHAN in ps). --davidm
CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
endif
+endif
$(obj)/configs.o: $(obj)/config_data.h
More information about the Linuxppc64-dev
mailing list