X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=Makefile;h=3e438055a92c503d48858761d56e00bcd9848276;hb=b9e2331dd1e0e04f7f2a6f8aa0c05bac2a7f0d7b;hp=d3c10719bbbd5b311c51f9a407184fd30847e6ea;hpb=b61f6a57f1919ef8dbd33f864df9b8b361c65b11;p=net-next-2.6.git diff --git a/Makefile b/Makefile index d3c10719bbb..3e438055a92 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