Makefile: Remove obsolete -fno-builtin flag

CAF cherry-picked an obsolete LLVMLinux patch from 2014 in commit
a2a31f1ddc 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 <danny@kdrag0n.dev>
This commit is contained in:
Danny Lin 2020-08-25 22:28:23 -07:00 committed by Giovanni Ricca
parent 625c0926b6
commit 2f25fcac4c
No known key found for this signature in database

View File

@ -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.