Skip to contentSkip to conversation

gcov: clang: drop support for clang-10 and older

PATCH Applied Nick Desaulniers 1 participant 1 message Apr 13, 2021 Gcov based kernel profiling

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 gcov: clang: drop support for clang-10 and older

LLVM changed the expected function signatures for llvm_gcda_start_file() and llvm_gcda_emit_function() in the clang-11 release. Drop the older implementations and require folks to upgrade their compiler if they're interested in GCOV support.

---
This patch is
https://lore.kernel.org/lkml/20210412214210.6e1ecca9cdc5.I24459763acf0591d5e6b31c7e3a59890d802f79c@changeid/
and
https://lore.kernel.org/lkml/[email protected]/
rolled into one, then rebased on linux-next with
https://lore.kernel.org/lkml/20210412214210.6e1ecca9cdc5.I24459763acf0591d5e6b31c7e3a59890d802f79c@changeid/
applied. I merged the Reviewed-by and Acked-by tags. It was simpler to drop v1
https://www.spinics.net/lists/mm-commits/msg154861.html in order to land commit 9562fd132985 ("gcov: re-fix clang-11+ support").

 kernel/gcov/Kconfig |   1 +
 kernel/gcov/clang.c | 103 --------------------------------------------
 2 files changed, 1 insertion(+), 103 deletions(-)
kernel/gcov/Kconfig +1 -0
index f62de2dea8a3..58f87a3092f3 100644
@@ -4,6 +4,7 @@ menu "GCOV-based kernel profiling"
 config GCOV_KERNEL
 	bool "Enable gcov-based kernel profiling"
 	depends on DEBUG_FS
+	depends on !CC_IS_CLANG || CLANG_VERSION >= 110000
 	select CONSTRUCTORS
 	default n
 	help
kernel/gcov/clang.c +0 -103

174 lines not on this page · raw message

Signature · 1 line
2.31.1.295.g9ea45b61b8-goog