[PATCH] gcov: support GCC 7.1

From: marxin
Date: Fri Sep 30 2016 - 08:00:20 EST


Starting from GCC 7.1, __gcov_exit is a new symbol expected
to be implemented in a profiling runtime.

Signed-off-by: Martin Liska <mliska@xxxxxxx>
---
kernel/gcov/base.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/kernel/gcov/base.c b/kernel/gcov/base.c
index 2f9df37..85dca5d 100644
--- a/kernel/gcov/base.c
+++ b/kernel/gcov/base.c
@@ -98,6 +98,12 @@ void __gcov_merge_icall_topn(gcov_type *counters, unsigned int n_counters)
}
EXPORT_SYMBOL(__gcov_merge_icall_topn);

+void __gcov_exit (void)
+{
+ /* Unused. */
+}
+EXPORT_SYMBOL(__gcov_exit);
+
/**
* gcov_enable_events - enable event reporting through gcov_event()
*
--
2.10.1


--------------7346623BAE698E619EB2DF2E--