aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc64
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2005-04-16 18:24:37 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:24:37 -0400
commit89e09f5ebba4bcde9852e4be4af536d5b691f20a (patch)
tree3098bc3e95322f2f9050daa539f772fdb7d7b04b /arch/ppc64
parent50bfb2e0329d45dd46fdc34f70cdaabe2d8a1dc7 (diff)
[PATCH] ppc64: remove -fno-omit-frame-pointer
During some code inspection using gcc 4.0 I noticed a stack frame was being created for a number of functions that didnt require it. For example: c0000000000df944 <._spin_unlock>: c0000000000df944: fb e1 ff f0 std r31,-16(r1) c0000000000df948: f8 21 ff c1 stdu r1,-64(r1) c0000000000df94c: 7c 3f 0b 78 mr r31,r1 c0000000000df950: 7c 20 04 ac lwsync c0000000000df954: e8 21 00 00 ld r1,0(r1) c0000000000df958: 38 00 00 00 li r0,0 c0000000000df95c: 90 03 00 00 stw r0,0(r3) c0000000000df960: eb e1 ff f0 ld r31,-16(r1) c0000000000df964: 4e 80 00 20 blr It turns out we are adding -fno-omit-frame-pointer to ppc64 which is causing the above behaviour. Removing that flag results in much better code: c0000000000d5b30 <._spin_unlock>: c0000000000d5b30: 7c 20 04 ac lwsync c0000000000d5b34: 38 00 00 00 li r0,0 c0000000000d5b38: 90 03 00 00 stw r0,0(r3) c0000000000d5b3c: 4e 80 00 20 blr We dont require a frame pointer to debug on ppc64, so remove it. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc64')
-rw-r--r--arch/ppc64/Kconfig4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/ppc64/Kconfig b/arch/ppc64/Kconfig
index 15c4a1455cae..ef1f05e437c4 100644
--- a/arch/ppc64/Kconfig
+++ b/arch/ppc64/Kconfig
@@ -40,10 +40,6 @@ config COMPAT
40 bool 40 bool
41 default y 41 default y
42 42
43config FRAME_POINTER
44 bool
45 default y
46
47# We optimistically allocate largepages from the VM, so make the limit 43# We optimistically allocate largepages from the VM, so make the limit
48# large enough (16MB). This badly named config option is actually 44# large enough (16MB). This badly named config option is actually
49# max order + 1 45# max order + 1