Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59842 )
Change subject: build: Use GCC’s -fanalyzer ......................................................................
build: Use GCC’s -fanalyzer
Change-Id: I992489b4d77a7ba7ae1e3161f619d7860effd1c3 Signed-off-by: Paul Menzel pmenzel@molgen.mpg.de --- M Makefile.inc M payloads/libpayload/Makefile.inc 2 files changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/42/59842/1
diff --git a/Makefile.inc b/Makefile.inc index 090505e..72d9940 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -435,6 +435,7 @@ CFLAGS_common += -Wlogical-op -Wduplicated-cond # cf. commit f69a99db (coreboot: x86: enable gc-sections) CFLAGS_common += -Wno-unused-but-set-variable +CFLAGS_common += -fanalyzer endif endif
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc index 2332517..4e4ed99 100644 --- a/payloads/libpayload/Makefile.inc +++ b/payloads/libpayload/Makefile.inc @@ -66,6 +66,7 @@ CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes -Wvla CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs -Wimplicit-fallthrough CFLAGS += -Wstrict-aliasing -Wshadow -Werror +CFLAGS += -fanalyzer
ifeq ($(CONFIG_LP_LTO),y) CFLAGS += -flto