Commit c1558bc5 authored by Peter Oberparleiter's avatar Peter Oberparleiter Committed by Andrew Morton

gcov: add support for GCC 14

Using gcov on kernels compiled with GCC 14 results in truncated 16-byte
long .gcda files with no usable data.  To fix this, update GCOV_COUNTERS
to match the value defined by GCC 14.

Tested with GCC versions 14.1.0 and 13.2.0.

Link: https://lkml.kernel.org/r/20240610092743.1609845-1-oberpar@linux.ibm.comSigned-off-by: default avatarPeter Oberparleiter <oberpar@linux.ibm.com>
Reported-by: default avatarAllison Henderson <allison.henderson@oracle.com>
Reported-by: default avatarChuck Lever III <chuck.lever@oracle.com>
Tested-by: default avatarChuck Lever <chuck.lever@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 7fea700e
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
#include <linux/mm.h> #include <linux/mm.h>
#include "gcov.h" #include "gcov.h"
#if (__GNUC__ >= 10) #if (__GNUC__ >= 14)
#define GCOV_COUNTERS 9
#elif (__GNUC__ >= 10)
#define GCOV_COUNTERS 8 #define GCOV_COUNTERS 8
#elif (__GNUC__ >= 7) #elif (__GNUC__ >= 7)
#define GCOV_COUNTERS 9 #define GCOV_COUNTERS 9
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment