diff mbox

[5/6] gcov: support GCC 7.1+

Message ID 20170824073948.29425-6-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith Aug. 24, 2017, 7:39 a.m. UTC
__gcov_exit() was added in GCC 7.1

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
---
 core/gcov-profiling.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/core/gcov-profiling.c b/core/gcov-profiling.c
index cf8b5096b0b9..70707011f154 100644
--- a/core/gcov-profiling.c
+++ b/core/gcov-profiling.c
@@ -57,6 +57,7 @@  void __gcov_merge_single(gcov_type *counters, unsigned int n_counters) __attrcon
 void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters) __attrconst;
 void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters) __attrconst;
 void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters) __attrconst;
+void __gcov_exit(void) __attrconst;
 
 void __gcov_init(struct gcov_info* f)
 {
@@ -130,3 +131,7 @@  void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters)
 	(void)counters;
 	(void)n_counters;
 }
+
+void __gcov_exit(void)
+{
+}