From a2a31f1ddcd28ba5dafc93d88efbbf04200df490 Mon Sep 17 00:00:00 2001 From: Raghavendra Rao Ananta Date: Mon, 18 Mar 2019 09:43:13 -0700 Subject: [PATCH] Makefile: Disable undefined-optimized and add -fno-builtin Suppress the SDLLVM specific compiler warning (undefined optimized) for the compilation to pass. Also add -fno-builtin such that the build doesn't pickup any compiler provided built-in functions. Change-Id: I9507600a9286ec6aff42160d2d77733594b891de Signed-off-by: Raghavendra Rao Ananta --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 37a1f3039623..b6ee29cdae95 100644 --- a/Makefile +++ b/Makefile @@ -744,6 +744,8 @@ KBUILD_CFLAGS += -Wno-tautological-compare # source of a reference will be _MergedGlobals and not on of the whitelisted names. # See modpost pattern 2 KBUILD_CFLAGS += -mno-global-merge +KBUILD_CFLAGS += $(call cc-disable-warning, undefined-optimized) +KBUILD_CFLAGS += -fno-builtin else # These warnings generated too much noise in a regular build.