Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1433834
| From | Florian Meier <Florian.Meier@informatik.uni-erlangen.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] gcov: Support for >=gcc-6 missing |
| Date | 2016-06-29 17:00 +0200 |
| Message-ID | <rPp85-5s5-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hello!
I've noticed problems ("not executed"/ "file empty") with the gcov
kernel support, when I'm using a gcc version >=6.
For me, it seems like this is no technical reason, gcc 6 just was
forgotten in the #ifdefs :).
The following patch was tested with kernel 4.6.3 and gcc-6.1.1.
I'm not 100% sure, that CGOV_COUNTERS=10 is correct, but the gcov
output seemed reasonable.
--- a/kernel/gcov/gcc_4_7.c 2016-05-16 00:43:13.000000000 +0200
+++ b/kernel/gcov/gcc_4_7.c 13:41:41.726666665 +0200
@@ -18,7 +18,9 @@
#include <linux/vmalloc.h>
#include "gcov.h"
-#if __GNUC__ == 5 && __GNUC_MINOR__ >= 1
+#if __GNUC__ == 6
+#define GCOV_COUNTERS 10
+#elif __GNUC__ == 5 && __GNUC_MINOR__ >= 1
#define GCOV_COUNTERS 10
#elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
#define GCOV_COUNTERS 9
Regards
Florian Meier
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] gcov: Support for >=gcc-6 missing Florian Meier <Florian.Meier@informatik.uni-erlangen.de> - 2016-06-29 17:00 +0200
Re: [PATCH] gcov: Support for >=gcc-6 missing Peter Oberparleiter <oberpar@linux.vnet.ibm.com> - 2016-06-30 14:30 +0200
Re: [PATCH] gcov: Support for >=gcc-6 missing Florian Meier <Florian.Meier@informatik.uni-erlangen.de> - 2016-07-01 11:20 +0200
csiph-web