Skip to contentSkip to conversation

gcov: Added support for >=gcc-6

PATCH Superseded Florian Meier 3 participants 8 messages Jul 1, 2016 – Jul 4, 2016 Gcov based kernel profiling

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gcov: Added support for >=gcc-6

---
 kernel/gcov/gcc_4_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/gcov/gcc_4_7.c +1 -1
index e25e92f..6a5c239 100644
@@ -18,7 +18,7 @@
 #include <linux/vmalloc.h>
 #include "gcov.h"
 
-#if __GNUC__ == 5 && __GNUC_MINOR__ >= 1
+#if (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS 10
 #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
 #define GCOV_COUNTERS 9
Signature · 1 line
2.9.0
#1 lore raw
Quoted 11 lines · Florian Meier
---
 kernel/gcov/gcc_4_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/gcov/gcc_4_7.c +0 -0
index e25e92f..6a5c239 100644

kernel/gcov/gcc_4_7.c line 24

Quoted 8 lines
kernel/gcov/gcc_4_7.c +1 -1
@@ -18,7 +18,7 @@
 #include <linux/vmalloc.h>
 #include "gcov.h"
 
-#if __GNUC__ == 5 && __GNUC_MINOR__ >= 1
+#if (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS 10
 #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
 #define GCOV_COUNTERS 9

Content looks good but the patch doesn't apply due to whitespace issues. Could you send a version with the tabs remaining intact? Also a slightly more verbose patch message (similar to the one of the original patch) would be helpful.

Signature · 2 lines
Peter Oberparleiter
Linux on z Systems Development - IBM Germany
#2 lore raw

PATCH v3 1/1 Added support for gcc version >= 6

Added support for gcc version >= 6 in gcov.

---
 kernel/gcov/gcc_4_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/gcov/gcc_4_7.c +1 -1
index e25e92f..6a5c239 100644
@@ -18,7 +18,7 @@
 #include <linux/vmalloc.h>
 #include "gcov.h"
 
-#if __GNUC__ == 5 && __GNUC_MINOR__ >= 1
+#if (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS			10
 #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
 #define GCOV_COUNTERS			9
Signature · 1 line
2.9.0
Reviewed-by Tested-by on v3 1/1
#3 lore raw

Re: [PATCH v003] Added support for gcc version >= 6

Quoted 3 lines · Florian Meier

Added support for gcc version >= 6 in gcov.

Looks good, thanks! Tested successfully with gcc 4.8.5 and gcc 6.1.0. Andrew, could you pick this change up via your tree?

Quoted 18 lines
---
 kernel/gcov/gcc_4_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/gcov/gcc_4_7.c +1 -1
index e25e92f..6a5c239 100644
@@ -18,7 +18,7 @@
 #include <linux/vmalloc.h>
 #include "gcov.h"
 
-#if __GNUC__ == 5 && __GNUC_MINOR__ >= 1
+#if (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS			10
 #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
 #define GCOV_COUNTERS			9
Signature · 2 lines
Peter Oberparleiter
Linux on z Systems Development - IBM Germany
#4 lore raw

Re: [PATCH v003] Added support for gcc version >= 6

In reply to Florian Meier
Quoted 1 line · Florian Meier

Added support for gcc version >= 6 in gcov.

It's important to mention the subsystem in the patch subject

e.g. "Subject: [PATCH V3] gcov: Support gcc version >= 6"

#5 lore raw

Re: [PATCH v003] Added support for gcc version >= 6

Quoted 6 lines · Joe Perches
Quoted 1 line · Florian Meier

Added support for gcc version >= 6 in gcov.

It's important to mention the subsystem in the patch subject

e.g. "Subject: [PATCH V3] gcov: Support gcc version >= 6"

Thanks for pointing this out - I completely missed that this was lost between v2 and v3 of the patch. Should we re-post or can this be fixed another way?

Signature · 2 lines
Peter Oberparleiter
Linux on z Systems Development - IBM Germany
#6 lore raw

Re: [PATCH v003] Added support for gcc version >= 6

I'll repost it, that's the easiest fix.

Quoted 16 lines · Peter Oberparleiter
Quoted 6 lines · Joe Perches
Quoted 1 line · Florian Meier

Added support for gcc version >= 6 in gcov.

It's important to mention the subsystem in the patch subject

e.g. "Subject: [PATCH V3] gcov: Support gcc version >= 6"

Thanks for pointing this out - I completely missed that this was lost between v2 and v3 of the patch. Should we re-post or can this be fixed another way?

--
Peter Oberparleiter
Linux on z Systems Development - IBM Germany

#7 lore raw

PATCH v4 1/1 gcov: Added support for gcc version >= 6

Added support for gcc version >= 6 in gcov.

---
 kernel/gcov/gcc_4_7.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/gcov/gcc_4_7.c +1 -1
index e25e92f..6a5c239 100644
@@ -18,7 +18,7 @@
 #include <linux/vmalloc.h>
 #include "gcov.h"
 
-#if __GNUC__ == 5 && __GNUC_MINOR__ >= 1
+#if (__GNUC__ > 5) || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
 #define GCOV_COUNTERS			10
 #elif __GNUC__ == 4 && __GNUC_MINOR__ >= 9
 #define GCOV_COUNTERS			9
Signature · 1 line
2.9.0