kbuild: gcov: enable -fno-tree-loop-im if supported
PATCH 1/1 kbuild: gcov: enable -fno-tree-loop-im if supported
Clang does not recognize this compiler option.
--- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Makefile +3 -1
@@ -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
Signature · 1 line
2.17.0.441.gb46fe60e1d-goog
Hi Masahiro and Michal,
The reporter has asked for their email address to be updated to:
if you're ok with this version of the patch and choose to apply it, can you please update the commit message. Otherwise, I'll make this change should we need other changes necessitating a v2.
Quoted 13 lines · Nick Desaulniers
Clang does not recognize this compiler option.
Reported-by Prasad Sodagudi <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>--- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Makefile +0
-0
Makefile all: vmlinux · line 626
Quoted 4 lines
Makefile +0
-1@@ -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,)
Quoted 8 lines
Makefile +3
-1+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 --2.17.0.441.gb46fe60e1d-goog
--
Thanks,
~Nick Desaulniers
2018-04-27 6:41 GMT+09:00 Nick Desaulniers <[email protected]>:
Quoted 4 lines
Hi Masahiro and Michal,
The reporter has asked for their email address to be updated to:
Quoted 12 lines
if you're ok with this version of the patch and choose to apply it, can you please update the commit message. Otherwise, I'll make this change should we need other changes necessitating a v2.
Quoted 4 lines · Nick Desaulniers
Clang does not recognize this compiler option.
Reported-by Prasad Sodagudi <[email protected]>Signed-off-by Nick Desaulniers <[email protected]>
Applied to linux-kbuild
with the reporter's email address updated.
Thanks!
Signature · 2 lines
Best Regards Masahiro Yamada