1
linux/arch/powerpc/platforms/powermac
Tony Breeds 7563dc6458 powerpc: Work around gcc's -fno-omit-frame-pointer bug
This bug is causing random crashes
(http://bugzilla.kernel.org/show_bug.cgi?id=11414).

-fno-omit-frame-pointer is only needed on powerpc when -pg is also
supplied, and there is a gcc bug that causes incorrect code generation
on 32-bit powerpc when -fno-omit-frame-pointer is used---it uses stack
locations below the stack pointer, which is not allowed by the ABI
because those locations can and sometimes do get corrupted by an
interrupt.

This ensures that CONFIG_FRAME_POINTER is only selected by ftrace.
When CONFIG_FTRACE is enabled we also pass -mno-sched-epilog to work
around the gcc codegen bug.

Patch based on work by:
	Andreas Schwab <schwab@suse.de>
	Segher Boessenkool <segher@kernel.crashing.org>

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2008-09-03 20:53:34 +10:00
..
backlight.c
bootx_init.c
cache.S
cpufreq_32.c calibrate_delay() must be __cpuinit 2008-02-06 10:41:08 -08:00
cpufreq_64.c
feature.c [POWERPC] Disable G5 NAP mode during SMU commands on U3 2008-02-08 19:52:35 +11:00
Kconfig
low_i2c.c [POWERPC] powermac: Use machine_*_initcall() hooks in platform code 2008-01-17 14:57:14 +11:00
Makefile powerpc: Work around gcc's -fno-omit-frame-pointer bug 2008-09-03 20:53:34 +10:00
nvram.c
pci.c ppc/pmac: remove no longer needed IDE quirk 2008-04-18 00:46:32 +02:00
pfunc_base.c [POWERPC] powermac: Use machine_*_initcall() hooks in platform code 2008-01-17 14:57:14 +11:00
pfunc_core.c arch: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:14:49 -04:00
pic.c [POWERPC] Move xmon_irq() declaration into xmon.h 2008-05-14 22:31:54 +10:00
pic.h
pmac.h ppc/pmac: remove ppc_ide_md hooks 2008-04-18 00:46:29 +02:00
setup.c powerpc/powermac: Fixup default serial port device for pmac_zilog 2008-07-28 16:30:53 +10:00
sleep.S
smp.c powerpc: Allow create_branch() to return errors 2008-07-01 11:28:19 +10:00
time.c [POWERPC] powermac: Fix warning in time.c 2007-12-03 13:56:25 +11:00
udbg_adb.c
udbg_scc.c powerpc/powermac: Use sane default baudrate for SCC debugging 2008-07-28 16:30:52 +10:00