aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2010-11-08 16:16:35 -0500
committerNicolas Pitre <nicolas.pitre@linaro.org>2010-11-08 16:16:35 -0500
commitcd435694bc87ef1d81ecc3203dbb57d644e992b1 (patch)
tree56c8274095f8a86336c2d0be0563f4a091f895b0 /Makefile
parentf6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff)
parent6451d7783ba5ff24eb1a544eaa6665b890f30466 (diff)
Merge commit '6451d77' into linaro-2.6.36
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 860c26af52c..aff5300bb0c 100644
--- a/Makefile
+++ b/Makefile
@@ -554,8 +554,15 @@ endif
ifdef CONFIG_FRAME_POINTER
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
else
+# Some targets (ARM with Thumb2, for example), can't be built with frame
+# pointers. For those, we don't have FUNCTION_TRACER automatically
+# select FRAME_POINTER. However, FUNCTION_TRACER adds -pg, and this is
+# incompatible with -fomit-frame-pointer with current GCC, so we don't use
+# -fomit-frame-pointer with FUNCTION_TRACER.
+ifndef CONFIG_FUNCTION_TRACER
KBUILD_CFLAGS += -fomit-frame-pointer
endif
+endif
ifdef CONFIG_DEBUG_INFO
KBUILD_CFLAGS += -g