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>

authored by Nick Desaulniers and committed by Masahiro Yamada c64ba044 75bc37fe

Changed files
+3 -1
+3 -1
Makefile
··· 623 623 624 624 KBUILD_CFLAGS += $(call cc-option,-fno-PIE) 625 625 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,) 627 629 export CFLAGS_GCOV CFLAGS_KCOV 628 630 629 631 # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default