Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp640365pxb; Mon, 16 Aug 2021 13:51:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDxJHotdUzgPHFY39j+ijTWYJQaXlq0lxBkRAhDpCdZxo4eYMPwOZ1ETfqSffY40vfPWWT X-Received: by 2002:aa7:d40e:: with SMTP id z14mr68542edq.250.1629147084682; Mon, 16 Aug 2021 13:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629147084; cv=none; d=google.com; s=arc-20160816; b=lpYN1CxYRl1GczSX8lSjjOEV01ieom7BnrDDB3/Bm6NAMCrXnqW3dMqD9CivD514ub U1bJRHH8o6sHwbHwB+EFgqNu47BbdPg6rfV3TB3IIq23nl8KC2WFHmD2jfW12ty2HZCr 5CGcQSkYUQhhBABQcjyQ1ewh9sorxWlYlLx+AZH4y+r1N7MBeK1Tld7qmexuZAqEseNJ pe1FNiz48zMNP9FuPx+KDqL7IcDpvLp2GRQYyFn3xOtVV/N/K9WehdYlEb2Bk1qWajpY HN+5KwLYyO5jRk11Epp999zQmXnZqbI+ipKgARRCqXaj6/hVeWGy4qsuvgC74tsYq/7R nTaQ== 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=RkFK9buKoxTffeATRlVHoBzA8iEtr+XNkO5dgCSB86k=; b=oMwZUpGE8BpeBB3d61SSm+o9WsH4CdwzUSqlbKbNqZrkuWUbiK9Xlan45a+/mD+s3+ WquJfCgxiBQPavHgMlEBmiW78153awsTCjDZKwil7FgG17DQzdZKWVHjjiLEPykFa+vK Zr1dWYEm0y0SSeue0w1EnkysIA9Z10/O2VM2+vTNk9LdopXLhbyzAWrtC6dROh+L9LSY zfuKZSUhayvNodfK5QjdK6u//K4Iihn92Y2SgqAjcd8dXy09sbQrb/iP80wf2omFfhAA vyXxxOFzaWAa1J/+VWneVpz0DkrlME389cHuqpchEzrlEP/qm8L9Ln7KzCXVwLCDk+f9 Ve7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=m3xilTAz; 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 hk14si302712ejb.220.2021.08.16.13.51.01; Mon, 16 Aug 2021 13:51:24 -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=m3xilTAz; 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 S232946AbhHPUte (ORCPT + 99 others); Mon, 16 Aug 2021 16:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231785AbhHPUtd (ORCPT ); Mon, 16 Aug 2021 16:49:33 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 976F4C061764 for ; Mon, 16 Aug 2021 13:48:58 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id i28so10308189lfl.2 for ; Mon, 16 Aug 2021 13:48:58 -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=RkFK9buKoxTffeATRlVHoBzA8iEtr+XNkO5dgCSB86k=; b=m3xilTAzBzihkA8v50VsWQG5DE3gEYSRMpfHNON4yVg8CpvTvPXX2TwqQPp8C6Q/Lo Hzhp9tkqPXRB4YPHyQtREdBUlEGyzpmKyVQ8521U1Rb25UqcULU9r3XUi73qHFJmexa9 kCdtmLcLhrDUEDy3og/wnXBNl5IJUkdfWRwgEGpEHDTLVft5X00zemrmoi2cRbCzVd/U UPTUzL0m0748lk3DbQN8bwzPRoT2v9e8ldYxOXnaEX2xYNJY6UXLwSJvUW7E//x6RerG 5RHmcNXtjfxRMwtHarVuBSXG7U6+ORge9VLnV9nIToAd3ew5hUJm40M1XieDGOqnylyp C6yA== 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=RkFK9buKoxTffeATRlVHoBzA8iEtr+XNkO5dgCSB86k=; b=MkJt6rq0dKhGmoKZ++bC1k861/wfpX+FeoLqPjPkIdf0CHDYcpVKG1IZaKxU8Z1+bo 8Vwu3RWUNEkn9OyvtnLcWfNWL8XN3M4Xsa0yMCxf6fSF5drlxEiIJhcJRywH0qUkBlyA qBDs55FwgCmjI+4hCtQ+8NJlg3t/gCA0bBAndifRsFNHhhuiOEpwtQHhhoUeHHsWnGzv TACTLGD74BA5RUn9KrORwOMSE8f40zU5bq3xlKbsvitFCyucpgJKnq8rfKeFzoWQ51p5 dEPz1DjJHlVxpd3cv+uagEDAIzvplEqIK9nxMEF4e3EfyuwQFV1A8cKmaiSIEhwlO7Cc 4ABA== X-Gm-Message-State: AOAM530vpZS5cpEDzrcQsNxhWaXlQmy//T3lsshhBPNXTKGkM7usbQDf kGLkBVI0isnR0xqoz00eS967ysxLT8Na3T1heeUlqA== X-Received: by 2002:ac2:4e8c:: with SMTP id o12mr188297lfr.374.1629146936679; Mon, 16 Aug 2021 13:48:56 -0700 (PDT) MIME-Version: 1.0 References: <20210816203635.53864-1-nathan@kernel.org> In-Reply-To: <20210816203635.53864-1-nathan@kernel.org> From: Nick Desaulniers Date: Mon, 16 Aug 2021 13:48:45 -0700 Message-ID: Subject: Re: [PATCH] kbuild: Switch to 'f' variants of integrated assembler flag To: Nathan Chancellor Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 16, 2021 at 1:37 PM Nathan Chancellor wrote: > > It has been brought up a few times in various code reviews that clang > 3.5 introduced -f{,no-}integrated-as as the preferred way to enable and > disable the integrated assembler, mentioning that -{no-,}integrated-as > are now considered legacy flags. > > Switch the kernel over to using those variants in case there is ever a > time where clang decides to remove the non-'f' variants of the flag. > > Link: https://releases.llvm.org/3.5.0/tools/clang/docs/ReleaseNotes.html#new-compiler-flags > Signed-off-by: Nathan Chancellor Thanks for the patch! Want to fix tools/testing/selftests/rseq/Makefile and tools/testing/selftests/sched/Makefile, too? Either way... Reviewed-by: Nick Desaulniers > --- > scripts/Makefile.clang | 4 ++-- > scripts/as-version.sh | 6 +++--- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/scripts/Makefile.clang b/scripts/Makefile.clang > index 3ae63bd35582..4cce8fd0779c 100644 > --- a/scripts/Makefile.clang > +++ b/scripts/Makefile.clang > @@ -23,11 +23,11 @@ CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%)) > endif # CROSS_COMPILE > > ifeq ($(LLVM_IAS),0) > -CLANG_FLAGS += -no-integrated-as > +CLANG_FLAGS += -fno-integrated-as > GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) > CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE)) > else > -CLANG_FLAGS += -integrated-as > +CLANG_FLAGS += -fintegrated-as > endif > CLANG_FLAGS += -Werror=unknown-warning-option > KBUILD_CFLAGS += $(CLANG_FLAGS) > diff --git a/scripts/as-version.sh b/scripts/as-version.sh > index 8b9410e329df..a0fc366728f1 100755 > --- a/scripts/as-version.sh > +++ b/scripts/as-version.sh > @@ -21,13 +21,13 @@ get_canonical_version() > echo $((10000 * $1 + 100 * ${2:-0} + ${3:-0})) > } > > -# Clang fails to handle -Wa,--version unless -no-integrated-as is given. > -# We check -(f)integrated-as, expecting it is explicitly passed in for the > +# Clang fails to handle -Wa,--version unless -fno-integrated-as is given. > +# We check -fintegrated-as, expecting it is explicitly passed in for the > # integrated assembler case. > check_integrated_as() > { > while [ $# -gt 0 ]; do > - if [ "$1" = -integrated-as -o "$1" = -fintegrated-as ]; then > + if [ "$1" = -fintegrated-as ]; then > # For the intergrated assembler, we do not check the ^ want to fix this typo, too? s/intergrated/integrated/ > # version here. It is the same as the clang version, and > # it has been already checked by scripts/cc-version.sh. > > base-commit: f12b034afeb3a977bbb1c6584dedc0f3dc666f14 > -- > 2.33.0.rc2 > -- Thanks, ~Nick Desaulniers