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
..
2008-07-03 16:58:10 +10:00
2008-07-03 16:58:10 +10:00
2007-05-11 05:38:25 -04:00
2008-05-09 20:22:58 +10:00
2008-06-30 22:31:00 +10:00
2008-03-07 08:42:28 -06:00
2008-05-23 22:43:11 +02:00
2008-08-04 13:18:17 +10:00
2008-07-26 12:00:04 -07:00
2008-06-30 22:31:11 +10:00
2008-07-01 11:28:47 +10:00
2007-10-11 14:36:47 +10:00
2008-07-16 11:07:59 +10:00
2008-08-04 13:18:17 +10:00