Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp616566pxb; Mon, 16 Aug 2021 13:08:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTqi88F960iZ7o3UDH9O4NWcL5K9fi/AXW8EoBRYxryeHYfiMs+MlfIaI/xJAzZxid1Na3 X-Received: by 2002:a05:6402:51cf:: with SMTP id r15mr336572edd.211.1629144506441; Mon, 16 Aug 2021 13:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629144506; cv=none; d=google.com; s=arc-20160816; b=jx3t7pjyf047mv1Yihk5tpFJwph/BW4LU/uadDyBoToWXd67iGaaJdt8Q9YVfgiArU hyMb7XXEN7cDrHSzwNHKrxKvobowY8SJ2kQuZPPHLyMa/VMtH3azpWZFEGqK9khA/JbA vDGo/2dvz1NuB34IzWC2bfWeBnQcOIC6C8vMLo8by+xHR61hXwda4rTIvnXN9tsiG1Mb 7+DFjKZ+tY3WdrcPvLBpJnm87c62ndrwkxpZl5N5Nkuy+QAS0VE9V9PNITciucDpRQwF ZoDmV1bC5p/l/pn5h+K7TFnHjstRg0ilvwoYCAu0YWLfI7E7qjMDRQVlOANUBFFL5exc 47Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=MCHefUYIGF0rDVJ88x82+J6avfifkq1IRlnZNezfBi0=; b=kWHaBlA2qFm/cpS381fJTS5+XXLsgMe14MUbB9vKnlqVr1mOIQp6nS9UOldevWf9lW 0aG7/70mUNJDflLnAWudtcFV5oHdMfiAS1ejNVZnIBvH8ebFIVTl0jkCVXwnUA4ahlsW mBqMchyoHTSFKvE6opS/za/aXPKfju5tbH3MCSvRow+dQU841aSp1rIPTB2Dh2srTlDf y0m+Ipri72zbB/21tcml38IU66ndb1+K3vE0xcTEel8amy7ql8nC3oL7+Luk1s98uVCI CzonwJIF/MnADP4zQBKMJ07VM1inrDTPyZ9d+KtwX1+EctbqbbVG8q0rknlsBi9RSZkj DUOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MPmTA2z8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si183654ejb.266.2021.08.16.13.07.56; Mon, 16 Aug 2021 13:08:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MPmTA2z8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbhHPUG7 (ORCPT + 99 others); Mon, 16 Aug 2021 16:06:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbhHPUG7 (ORCPT ); Mon, 16 Aug 2021 16:06:59 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DC7BC0613C1 for ; Mon, 16 Aug 2021 13:06:27 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id d4so36733672lfk.9 for ; Mon, 16 Aug 2021 13:06:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MCHefUYIGF0rDVJ88x82+J6avfifkq1IRlnZNezfBi0=; b=MPmTA2z8ZBWyznTkjJSbBpYBiKSwRKqaPJeK9g3MrNUu8QU8lEs5G4eyP6K7/RVcib rSElteGsKie7jonGaiPHLEev7ZJR39UsHoWnioW4gtfpWCZ9nV+JIPZsxF60HByTqbb9 j7JYeW3xlEobvuQxyzLtdXgUlKS7aYkJpjy7Nu2K+ot3LLgsdN3F7BANNoZtkkxvjKkt dGEXpeuZZdT2BdyMcaHDXZEKEksVb4fzCEFmwGHSgHQzj2453B2zyxa1bgFTn06Z3YVT vFkgP5QR9kW7iF7gnZDyd8JMU2V5mlF4Ggg6j6bMIsE6BTI2AySTsf/MQHl+/rRNXjuu x0Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MCHefUYIGF0rDVJ88x82+J6avfifkq1IRlnZNezfBi0=; b=Ur+WLAQCLa2N8xcvPt5BTmGZt3uBBD4EZEOYO9+Dr+bN2GXRwpwXtefcWve5v0Pt8h AB179r9NXhA3eqr5yGP65RDLd5cZHAYINGHuij61mf0A0hMNAu+VTkJyejKQcVvP+0aB GoJc5i6734Y9WJqlxK6338ho/Cq/ixcvEpxlAqIQDYWEofup3OvnhNnZWV7BLeHMgYLt PWFU02HBacP7DAkBHbnpY7EU1QSxfzMzLVavIhEu18ajmGFT9pCkzjnytnR//RdMOVuB /HwPmHQMFIRCwssRHmzAe0fGY0604oq3A/RlbPzJLBD44Gfh1ogQusnkKSB8FWoHcy+Q qC/Q== X-Gm-Message-State: AOAM5300fNYuCBVQznfkuy75aIDQP8v/dNkpIhPqQOt/zW4DthFy20jq TCVPIsIZukycpK0Vd22SNHVgTANbslJYr+AgPT6CUQ== X-Received: by 2002:a19:f017:: with SMTP id p23mr55541lfc.547.1629144384999; Mon, 16 Aug 2021 13:06:24 -0700 (PDT) MIME-Version: 1.0 References: <20210810204240.4008685-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 16 Aug 2021 13:06:13 -0700 Message-ID: Subject: Re: [PATCH] Makefile: remove stale cc-option checks To: Masahiro Yamada Cc: Michal Marek , Nathan Chancellor , Andrew Morton , "Paul E. McKenney" , Peter Zijlstra , Miguel Ojeda , Tetsuo Handa , Vitor Massaru Iha , Sedat Dilek , Daniel Latypov , Linux Kbuild mailing list , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 13, 2021 at 6:43 PM Masahiro Yamada wrote: > > On Wed, Aug 11, 2021 at 5:42 AM Nick Desaulniers > wrote: > > > > diff --git a/Makefile b/Makefile > > index 027fdf2a14fe..3e3fb4affba1 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -798,7 +801,7 @@ include/config/auto.conf: > > endif # may-sync-config > > endif # need-config > > > > -KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) > > +KBUILD_CFLAGS += -fno-delete-null-pointer-checks > > KBUILD_CFLAGS += $(call cc-disable-warning,frame-address,) > > KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation) > > KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) > > @@ -844,17 +847,17 @@ KBUILD_RUSTFLAGS += -Copt-level=z > > endif > > > > # Tell gcc to never replace conditional load with a non-conditional one > > -KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0) > > +ifdef CONFIG_CC_IS_GCC > > > Can you insert a comment here? > > # GCC 10 renamed --param=allow-store-data-races=0 to --allow-store-data-races > > > It will remind us of dropping this conditional > in the (long long distant) future. > > > > > > +KBUILD_CFLAGS += $(call cc-option,--allow-store-data-races,--param=allow-store-data-races=0) > > KBUILD_CFLAGS += $(call cc-option,-fno-allow-store-data-races) > > +endif So it looks like `-fallow-store-data-races` was also supported. Reading through https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97309 https://gcc.gnu.org/wiki/Atomic/GCCMM/ExecutiveSummary it seems that the default is not to allow "store data races." So I should not be adding `--allow-store-data-races` or `-fallow-store-data-races`; so this just should be the existing test, with a comment that it can be removed once gcc-10+ is the minimum. Will update that in v2. -- Thanks, ~Nick Desaulniers