From patchwork Thu May 9 11:48:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 10937055 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 72E451390 for ; Thu, 9 May 2019 11:49:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6235328668 for ; Thu, 9 May 2019 11:49:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54E1A2872E; Thu, 9 May 2019 11:49:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07DF528668 for ; Thu, 9 May 2019 11:49:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726141AbfEILtL (ORCPT ); Thu, 9 May 2019 07:49:11 -0400 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 Received: by mail-ed1-f65.google.com with SMTP id w11so1753945edl.5; Thu, 09 May 2019 04:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sNtboVBsghPQj/AL2Rkd+eRn4TqkkpR3VO8biQ2JG28=; b=XWzYavZYttBb9NOMXcOout6a0NX8kk2ndPLZ7RyOn7OwEKP+42cET2l/Nnerw/Feps ALFHHyetwg9B78KJjlwHF3tAxV1n3aRmCkcu/jCPX8Gkv7or/sG+Jkntb73yD6hGRb3y ab9huSIRKzHYjQTSNn3Bt3386NgHx2Zbg7u7Oq4S49s85t8D9xKg7HDGBw2v8t7PGTFe 8i2VWQco/1jUUrvW3GmJYJqcuZpI6c19Tg0fTK5GMO+XllQ95+qY8qAAT31DBNVVy9Hx 0zM75xPUIjzPnIl7G5IcXUtzTALFbeKkUxBRQA/Y+aLvZOlAsnu/+IEi5y7H0XIO5QgQ cBCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sNtboVBsghPQj/AL2Rkd+eRn4TqkkpR3VO8biQ2JG28=; b=gMEh2z7HhXABEVzy1JSrd2NFmllvKtoEdorgqt1EUAKy6fTWsu/a1WyBP08v7G2Ntg pXm040nwjZsN8X3nh35VP7jJzIALSdjWYhe+WmhhQjKN1CQdl4pXVDxJ9BAaGOUm4IYa nStIEFe25EKADCQ8MboDGpy5aVTAUIObeySS2Dze0GEnKZxVfFkqfeJhRh+IlcfUnsMt G22zu+8KPULWQQGuuizBHUggOF4SHB4nNORRFyyucCaYscDlKso0U6lko9ND1nI1or0Y DmEIGxvIxwdDBxwFFGkExZo9wP/f8M2dpgUV+tGOfSQmmPuM9LaHr5WkHBB10Z33+xnE 7XYA== X-Gm-Message-State: APjAAAUGLpf7uBYRa6WErynhsSxemtyTdLvHtpQkCFGu/v6xi2HQntc3 QcVuf9/AFQcoETg4yY0y14k= X-Google-Smtp-Source: APXvYqycmG51rH4H8WukgCe/+Ydnf5+Ho3G1TOzeMwOJobpPcGFydAyhRVVhaXg3vdGnCHOvwlh4dQ== X-Received: by 2002:a50:97d6:: with SMTP id f22mr3399014edb.115.1557402549836; Thu, 09 May 2019 04:49:09 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f9:2b:2b84::2]) by smtp.gmail.com with ESMTPSA id d28sm284538ejl.83.2019.05.09.04.49.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 May 2019 04:49:09 -0700 (PDT) From: Nathan Chancellor 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 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> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 X-Patchwork-Bot: notify Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Nick Desaulniers --- 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.