[PATCH RFC next 05/18] kbuild: Don't try to add '-fcatch-undefined-behavior' flag

Quentin Schulz foss+uboot at 0leil.net
Mon May 4 15:20:32 CEST 2026


From: Quentin Schulz <quentin.schulz at cherry.de>

[ Upstream commit 7eb8e5f073051eebbf55fa6b90ed2246c2274552 ]

Original commit log:

  This is no longer a valid option in clang, it was removed in 3.5, which
  we don't support.

  https://github.com/llvm/llvm-project/commit/cb3f812b6b9fab8f3b41414f24e90222170417b4

[git conflict in context due to commit 52ee1a0294e8 ("global: Disable
 deprecated-non-prototype warning with clang")]
Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
 Makefile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Makefile b/Makefile
index 0404657dac6..a0e9406bc59 100644
--- a/Makefile
+++ b/Makefile
@@ -1007,7 +1007,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
 # source of a reference will be _MergedGlobals and not on of the whitelisted names.
 # See modpost pattern 2
 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
-KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
 KBUILD_CFLAGS += $(call cc-disable-warning, deprecated-non-prototype)
 else
 

-- 
2.54.0



More information about the U-Boot mailing list