|
|
@@ -372,7 +372,7 @@ LDFLAGS_MODULE =
|
|
|
CFLAGS_KERNEL =
|
|
|
AFLAGS_KERNEL =
|
|
|
LDFLAGS_vmlinux =
|
|
|
-CFLAGS_GCOV = -fprofile-arcs -ftest-coverage -fno-tree-loop-im -Wno-maybe-uninitialized
|
|
|
+CFLAGS_GCOV := -fprofile-arcs -ftest-coverage -fno-tree-loop-im $(call cc-disable-warning,maybe-uninitialized,)
|
|
|
CFLAGS_KCOV := $(call cc-option,-fsanitize-coverage=trace-pc,)
|
|
|
|
|
|
|
|
|
@@ -653,6 +653,12 @@ KBUILD_CFLAGS += $(call cc-ifversion, -lt, 0409, \
|
|
|
# Tell gcc to never replace conditional load with a non-conditional one
|
|
|
KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
|
|
|
|
|
|
+# check for 'asm goto'
|
|
|
+ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
|
|
|
+ KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
|
|
+ KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
|
|
+endif
|
|
|
+
|
|
|
include scripts/Makefile.gcc-plugins
|
|
|
|
|
|
ifdef CONFIG_READABLE_ASM
|
|
|
@@ -798,12 +804,6 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types)
|
|
|
# use the deterministic mode of AR if available
|
|
|
KBUILD_ARFLAGS := $(call ar-option,D)
|
|
|
|
|
|
-# check for 'asm goto'
|
|
|
-ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
|
|
|
- KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
|
|
|
- KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
|
|
|
-endif
|
|
|
-
|
|
|
include scripts/Makefile.kasan
|
|
|
include scripts/Makefile.extrawarn
|
|
|
include scripts/Makefile.ubsan
|