linux/arch
Anton Blanchard 89e09f5ebb [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>
2005-04-16 15:24:37 -07:00
..
alpha Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
arm [PATCH] arm: add comment about max_low_pfn/max_pfn 2005-04-16 15:23:57 -07:00
arm26 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cris Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
frv Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
h8300 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i386 [PATCH] fix crash in entry.S restore_all 2005-04-16 15:24:01 -07:00
ia64 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m32r Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m68k Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m68knommu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mips Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
parisc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ppc [PATCH] ppc64: very basic desktop g5 sound support 2005-04-16 15:24:32 -07:00
ppc64 [PATCH] ppc64: remove -fno-omit-frame-pointer 2005-04-16 15:24:37 -07:00
s390 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sh Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sh64 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sparc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sparc64 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
um Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
v850 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
x86_64 Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00