]> Git Repo - linux.git/commitdiff
gcov: Disable gcov build with GCC 10
authorLeon Romanovsky <[email protected]>
Fri, 4 Sep 2020 15:58:08 +0000 (18:58 +0300)
committerLinus Torvalds <[email protected]>
Fri, 4 Sep 2020 16:19:49 +0000 (09:19 -0700)
GCOV built with GCC 10 doesn't initialize n_function variable.  This
produces different kernel panics as was seen by Colin in Ubuntu and me
in FC 32.

As a workaround, let's disable GCOV build for broken GCC 10 version.

Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1891288
Link: https://lore.kernel.org/lkml/[email protected]
Link: https://lore.kernel.org/lkml/CAHk-=whbijeSdSvx-Xcr0DPMj0BiwhJ+uiNnDSVZcr_h_kg7UA@mail.gmail.com/
Cc: Colin Ian King <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/gcov/Kconfig

index 3110c77230c7f7729b7a4488680ee0003e1797f0..bb4b680e8455acdde880c21bdc7197dee5db9112 100644 (file)
@@ -4,6 +4,7 @@ menu "GCOV-based kernel profiling"
 config GCOV_KERNEL
        bool "Enable gcov-based kernel profiling"
        depends on DEBUG_FS
+       depends on !CC_IS_GCC || GCC_VERSION < 100000
        select CONSTRUCTORS if !UML
        default n
        help
This page took 0.058069 seconds and 4 git commands to generate.