From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f65.google.com ([209.85.208.65]:38763 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbfEILtL (ORCPT ); Thu, 9 May 2019 07:49:11 -0400 From: Nathan Chancellor Subject: [PATCH] Makefile: Don't try to add '-fcatch-undefined-behavior' flag Date: Thu, 9 May 2019 04:48:25 -0700 Message-Id: <20190509114824.25866-1-natechancellor@gmail.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada , Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nick Desaulniers , Arnd Bergmann , Nathan Chancellor 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 Signed-off-by: Nathan Chancellor --- Let me know if you want this incremental to your patch. I figured it made more sense to remove this then do the cc-option/cc-disable-warning removal because it will simplify the commit message. Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile b/Makefile index d24f5a8009ee..e4788eb2c9b9 100644 --- a/Makefile +++ b/Makefile @@ -740,7 +740,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) else # These warnings generated too much noise in a regular build. -- 2.21.0