]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gcov: add support for GCC 15
authorPeter Oberparleiter <oberpar@linux.ibm.com>
Tue, 28 Oct 2025 11:51:25 +0000 (12:51 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 10 Nov 2025 05:19:44 +0000 (21:19 -0800)
commitec4d11fc4b2dd4a2fa8c9d801ee9753b74623554
tree8d9fdb73f189675f4de776f5077212d9429f1691
parent0d6c356dd6547adac2b06b461528e3573f52d953
gcov: add support for GCC 15

Using gcov on kernels compiled with GCC 15 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 15.

Tested with GCC 14.3.0 and GCC 15.2.0.

Link: https://lkml.kernel.org/r/20251028115125.1319410-1-oberpar@linux.ibm.com
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reported-by: Matthieu Baerts <matttbe@kernel.org>
Closes: https://github.com/linux-test-project/lcov/issues/445
Tested-by: Matthieu Baerts <matttbe@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/gcov/gcc_4_7.c