gcov: Added support for >=gcc-6
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
@@ -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
Quoted 11 lines · Florian Meier
Signed-off-by Florian Meier <[email protected]>--- kernel/gcov/gcc_4_7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/gcov/gcc_4_7.c +0
-0
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
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
@@ -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
Re: [PATCH v003] Added support for gcc version >= 6
Quoted 3 lines · Florian Meier
Added support for gcc version >= 6 in gcov.
Signed-off-by Florian Meier <[email protected]>
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@@ -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
Re: [PATCH v003] Added support for gcc version >= 6
In reply to Florian MeierQuoted 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"
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
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
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
@@ -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