Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3101cc88 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Prasad Sodagudi
Browse files

kbuild: gcov: enable -fno-tree-loop-im if supported



Clang does not recognize this compiler option.

Change-Id: Ie10ee7c860aa8ae74b6554385e9e369cbbd6f475
Reported-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Git-commit: c64ba044ed57ea72cc1c7b14a8dcfb6ded5a759c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 9ae54a8e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -637,7 +637,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,)
CFLAGS_KCOV	:= $(call cc-option,-fsanitize-coverage=trace-pc,)
export CFLAGS_GCOV CFLAGS_KCOV