Skip to content

Commit c64ba04

Browse files
nickdesaulniersmasahir0y
authored andcommitted
kbuild: gcov: enable -fno-tree-loop-im if supported
Clang does not recognize this compiler option. Reported-by: Prasad Sodagudi <[email protected]> Signed-off-by: Nick Desaulniers <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 75bc37f commit c64ba04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,9 @@ all: vmlinux
623623

624624
KBUILD_CFLAGS += $(call cc-option,-fno-PIE)
625625
KBUILD_AFLAGS += $(call cc-option,-fno-PIE)
626-
CFLAGS_GCOV := -fprofile-arcs -ftest-coverage -fno-tree-loop-im $(call cc-disable-warning,maybe-uninitialized,)
626+
CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \
627+
$(call cc-option,-fno-tree-loop-im) \
628+
$(call cc-disable-warning,maybe-uninitialized,)
627629
export CFLAGS_GCOV CFLAGS_KCOV
628630

629631
# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default

0 commit comments

Comments
 (0)