ARM: 6312/1: ftrace: allow building without frame pointers
authorRabin Vincent <rabin@rab.in>
Tue, 10 Aug 2010 18:20:53 +0000 (19:20 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Sep 2010 14:24:18 +0000 (15:24 +0100)
commit7e9501fdecdee8151938e624b41978307cadddd2
tree4bbaa236d934e9fc7e6339b4a028f08b685047d9
parentd4348c678977c7093438bbbf2067c49396ae941b
ARM: 6312/1: ftrace: allow building without frame pointers

With current gcc, compiling with both -pg and -fomit-frame-pointer is
not allowed.  However, -pg can be used to build without actually
specifying -fno-omit-frame-pointer, upon which the default behaviour
for the target will be used.

On ARM, it is not possible to build a Thumb-2 kernel with
-fno-omit-frame-pointer (FRAME_POINTERS depends on !THUMB2_KERNEL). In
order to support ftrace for Thumb-2, we need to be able to allow a
combination of FUNCTION_TRACER and !FRAME_POINTER.  We do this by
omitting -fomit-frame-pointer if ftrace is enabled.

Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Makefile