diff options
| author | Nick Desaulniers <ndesaulniers@google.com> | 2018-04-26 17:28:07 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-05-17 09:35:30 -0400 |
| commit | c64ba044ed57ea72cc1c7b14a8dcfb6ded5a759c (patch) | |
| tree | 8ac8f0a551621a0ac5be6e78c04696fdc0eb81b4 | |
| parent | 75bc37fefc4471e718ba8e651aa74673d4e0a9eb (diff) | |
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>
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -623,7 +623,9 @@ all: vmlinux | |||
| 623 | 623 | ||
| 624 | KBUILD_CFLAGS += $(call cc-option,-fno-PIE) | 624 | KBUILD_CFLAGS += $(call cc-option,-fno-PIE) |
| 625 | KBUILD_AFLAGS += $(call cc-option,-fno-PIE) | 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 | export CFLAGS_GCOV CFLAGS_KCOV | 629 | export CFLAGS_GCOV CFLAGS_KCOV |
| 628 | 630 | ||
| 629 | # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default | 631 | # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default |
