From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8260AC433E2 for ; Thu, 10 Sep 2020 16:27:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 069752075A for ; Thu, 10 Sep 2020 16:27:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="m2RqwPhh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DQagOZDO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 069752075A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BK9eHiuorHrvECXHF2Dzx+P/a+qet3QMx+/+5Zfv5wY=; b=m2RqwPhhZtUoDzqapQ3dxYUlK Qvyj2aZXFP+s9id/wrob6rbq/ua2H9/VpMnXrzY8a5MNV4saU95Wnl3asud4aO0sF9Hd/LRNbtnts 17RcpsU/Z1vYCntHF4dUmTVkm9qwP55T0Q8Fj4REWwNS0X9cxNol6bv8K2Fu6oR+o3gD7dyj+ZMeF o2H1Inp1hWRKuDGbDEZo3VeVi8OzVxSBvJzC6UspzisIIpCMVt9AUC8m8+DArVmMRXkLxO0MItTnh IRnv7g8iMFFbr/gbD62kUT6c3/jDoA5iZgT7z4Y1NixbE6KMDTgG/VgQW56vRz+wzAtY7m4XOc1NM R4Hm4+G2Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGPOz-0005c4-VJ; Thu, 10 Sep 2020 16:26:26 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kGPOx-0005bR-OD for linux-arm-kernel@lists.infradead.org; Thu, 10 Sep 2020 16:26:24 +0000 Received: by mail-qk1-x743.google.com with SMTP id w12so6666923qki.6 for ; Thu, 10 Sep 2020 09:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=u6ipngvB4JWmCirHiN613ekfbG1vVvJJvC/3Qroc/h4=; b=DQagOZDOT9VqXFwVB+dkIE3jQpoY/zrtom7izhYOg/bqtMTt2+ERhXCXfoD0apNiRW z5ZhAl6oFjX2VTSNSnQI0ulS/Ju0QoH16cgdiPE0Pei2dztMAdYsDQ4pm9ZJUnJgHGmD YhAeg0uCkoYLl2zyod6/ySwLc/+yPPXHLyjayg4HBmGYzqttrYI+4+ZDSJmD0QdKEUfq FLw7qMmlO5QXXw+YyGhoVFBS3WkeuvXobkOhjbt+rM1GF+y0fonU0NdpV1vPxzZaRx8s zHX8ngswv1h6MwoZ+giVrcv02tZ5QS4qQn6V6JekfCIPac+oQLBBDI7XLhJ062u6/iP0 bHYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=u6ipngvB4JWmCirHiN613ekfbG1vVvJJvC/3Qroc/h4=; b=i6qkmngR1wTaeOC4vKMAve9hhVmJhhzX8c0Ob3txeAms0t+/yFnsO2UzF8um/qiXxd lXVaNafL4FgjXe/C3YxfZ/nuyuIqdazxOiyqJrNRiIUx6DfN5DFk4expRxAPQsWpNCZ6 fw8ttpdaf8608vQZN79R2UwAJxNMuLkLSf5xwgb05NYU+ORtqYWRpllUhBNg81XVW8D1 f9zE553F54jeAbnAjeh4qMi5J2v3ToBJX4dbh2yGyg0qnB+ir7spTwjAuX6CmruQ7Dth VgBnuaKLNV89Sqw5IXmXH+5luahMduDPCVk9sun9ddaO+elk8ESJsOfAWtt8/1UO4vOO elPQ== X-Gm-Message-State: AOAM53317A/yxeN8mg37XSinKyZ3rNAY/kblF0SLt2dhx6k8PTAiCpiD 1bCB8bCA3VHiD0UX+unhqdk= X-Google-Smtp-Source: ABdhPJyKeaURFSZ52gJgA2Rq5+VQW6v3QZzcl9Td9Bf1H0J1p3MyR4dI4EKuNA5vgDRzH8WbvpMlkQ== X-Received: by 2002:a37:a7cb:: with SMTP id q194mr8685507qke.183.1599755180181; Thu, 10 Sep 2020 09:26:20 -0700 (PDT) Received: from ubuntu-n2-xlarge-x86 ([2604:1380:45d1:2600::1]) by smtp.gmail.com with ESMTPSA id 15sm6630858qka.96.2020.09.10.09.26.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 09:26:19 -0700 (PDT) Date: Thu, 10 Sep 2020 09:26:17 -0700 From: Nathan Chancellor To: Masahiro Yamada Subject: Re: [PATCH 1/4] kbuild: remove cc-option test of -fno-strict-overflow Message-ID: <20200910162617.GA3119896@ubuntu-n2-xlarge-x86> References: <20200910135120.3527468-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200910135120.3527468-1-masahiroy@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200910_122623_820118_FF25C41D X-CRM114-Status: GOOD ( 19.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michal Marek , linux-kbuild@vger.kernel.org, Catalin Marinas , Nick Desaulniers , linux-kernel@vger.kernel.org, Stephen Boyd , clang-built-linux@googlegroups.com, Ingo Molnar , Vincenzo Frascino , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 10, 2020 at 10:51:17PM +0900, Masahiro Yamada wrote: > The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. > > Here is the godbolt: > https://godbolt.org/z/odq8h9 > > Signed-off-by: Masahiro Yamada Appeared in clang 3.0.0 in commit 6e50103acda2b918545f30141edeb991d766f2a4. Reviewed-by: Nathan Chancellor > --- > > Makefile | 2 +- > arch/arm64/kernel/vdso32/Makefile | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile > index 4b5a305e30d2..059b36f2ea53 100644 > --- a/Makefile > +++ b/Makefile > @@ -922,7 +922,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, restrict) > KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized) > > # disable invalid "can't wrap" optimizations for signed / pointers > -KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) > +KBUILD_CFLAGS += -fno-strict-overflow > > # clang sets -fmerge-all-constants by default as optimization, but this > # is non-conforming behavior for C and in fact breaks the kernel, so we > diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile > index d6adb4677c25..dfffd55175a3 100644 > --- a/arch/arm64/kernel/vdso32/Makefile > +++ b/arch/arm64/kernel/vdso32/Makefile > @@ -90,7 +90,7 @@ VDSO_CFLAGS += -O2 > # Some useful compiler-dependent flags from top-level Makefile > VDSO_CFLAGS += $(call cc32-option,-Wdeclaration-after-statement,) > VDSO_CFLAGS += $(call cc32-option,-Wno-pointer-sign) > -VDSO_CFLAGS += $(call cc32-option,-fno-strict-overflow) > +VDSO_CFLAGS += -fno-strict-overflow > VDSO_CFLAGS += $(call cc32-option,-Werror=strict-prototypes) > VDSO_CFLAGS += $(call cc32-option,-Werror=date-time) > VDSO_CFLAGS += $(call cc32-option,-Werror=incompatible-pointer-types) > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel