From 2f25fcac4cad6b312d435c5ad83450e9fabba400 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Tue, 25 Aug 2020 22:28:23 -0700 Subject: [PATCH] Makefile: Remove obsolete -fno-builtin flag CAF cherry-picked an obsolete LLVMLinux patch from 2014 in commit a2a31f1ddcd28ba5dafc93d88efbbf04200df490 that introduced this unnecessary flag. Now that the functions used by Clang's libcall optimizations have been implemented, we can allow Clang to perform said optimizations for a minor performance bump in certain code paths. Change-Id: Ifa6b731c9702973be2c656d341e33a6186ed7cf2 Signed-off-by: Danny Lin --- Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index a3595a6b4dfa..ca64f96bd193 100644 --- a/Makefile +++ b/Makefile @@ -802,7 +802,6 @@ KBUILD_CFLAGS += -Wno-tautological-compare # See modpost pattern 2 KBUILD_CFLAGS += -mno-global-merge KBUILD_CFLAGS += $(call cc-disable-warning, undefined-optimized) -KBUILD_CFLAGS += -fno-builtin else # Warn about unmarked fall-throughs in switch statement.