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

Ilias Apalodimas ilias.apalodimas at linaro.org
Tue May 5 07:42:21 CEST 2026


On Mon, 4 May 2026 at 16:20, Quentin Schulz <foss+uboot at 0leil.net> wrote:
>
> 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>
> ---

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>

>  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