summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick Desaulniers <ndesaulniers@google.com>2018-04-27 00:28:07 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-05-17 16:35:30 +0300
commitc64ba044ed57ea72cc1c7b14a8dcfb6ded5a759c (patch)
tree8ac8f0a551621a0ac5be6e78c04696fdc0eb81b4 /Makefile
parent75bc37fefc4471e718ba8e651aa74673d4e0a9eb (diff)
downloadlinux-c64ba044ed57ea72cc1c7b14a8dcfb6ded5a759c.tar.xz
kbuild: gcov: enable -fno-tree-loop-im if supported
Clang does not recognize this compiler option. Reported-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d0d2652db174..ba090852805c 100644
--- a/Makefile
+++ b/Makefile
@@ -623,7 +623,9 @@ all: vmlinux
KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
-CFLAGS_GCOV := -fprofile-arcs -ftest-coverage -fno-tree-loop-im $(call cc-disable-warning,maybe-uninitialized,)
+CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \
+ $(call cc-option,-fno-tree-loop-im) \
+ $(call cc-disable-warning,maybe-uninitialized,)
export CFLAGS_GCOV CFLAGS_KCOV
# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default