Skip to contentSkip to conversation

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

PATCH In review Nick Desaulniers 2 participants 3 messages Apr 26, 2018 – May 5, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

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
index 83b6c541565a..7f653c924c18 100644
@@ -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
#1 lore raw

Hi Masahiro and Michal,

The reporter has asked for their email address to be updated to:

[email protected]

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.

---
  Makefile | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
Makefile +0 -0
index 83b6c541565a..7f653c924c18 100644

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

#2 lore raw

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

[email protected]

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.

Applied to linux-kbuild
with the reporter's email address updated.

Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada