mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] gcov: Support for >=gcc-6 missing
@ 2016-06-29 14:58 Florian Meier
  2016-06-30 12:13 ` Peter Oberparleiter
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Meier @ 2016-06-29 14:58 UTC (permalink / raw)
  To: Peter Oberparleiter; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-01  9:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-29 14:58 [PATCH] gcov: Support for >=gcc-6 missing Florian Meier
2016-06-30 12:13 ` Peter Oberparleiter
2016-07-01  9:05   ` Florian Meier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®