Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3228872pxt; Mon, 9 Aug 2021 21:20:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK6jXN6AVRbExZXwNGiDAXDS0K4JFha2IaQZH5iqP+JPvS1Q0hgqOXnFVNoZ5L1B9ZbLdO X-Received: by 2002:a17:906:4ad5:: with SMTP id u21mr26151641ejt.74.1628569224578; Mon, 09 Aug 2021 21:20:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628569224; cv=none; d=google.com; s=arc-20160816; b=AAPw08QKygBFF8YRSvHaSAw1opiKOoAA5IxOrnh5EnE5S3xQ5bvtUAXmzwXndg8/H1 BVDj6Z1SCgYAZkHMG3/SqCU8G6wbs+I70x8DX2IYQQDvNylp11+qf8ty2ADAZrzwdI2e ITVzIc5wh8fMmw1YaoqfVrmiipdZlOB6y3gDQEhtLlb+C663gF6ZPHQ8sCPdLNuhoRpF 6nQXxhut9jaozI73cSx/NpUsSiq4b0omK2qqMCH4D1ybd2vOShaaBf2OriSqfTs1q68t ow3L0Mm2ttN+8Cq6wWJwsfjIn6HPOaslIRtTXkL3d7UpC51hudhqQVHUlflExSof4tMC QWuQ== 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:dkim-filter; bh=JjfxB/NWBg6Ktsgql9hFjDsswtW13cjHVcXKJN/HvB8=; b=Fw0HpEGhklJtk79KDBTL1P331ppfL7Lxw8dZGaQRYIbCED81dSZE+q1OhkPh5MkNEv oaMcPuwO/JGzdj5/c7QeYXWo+K6ROaqZpClGteUloA+xdy7IFgcyGZiGi9EscO0e6VpP 0In+OawfU5LAs1yZo1ycRImdo0SFlnne3+5RsX1AWP0Kl+c0c8pGcYXTjXL35xKqlBdo 2hHspBk9+Crt3p9JEROpxzfdwUDd7Kaz1WX0N9Go5r/HD95oexID1+SAuk8xg/gNLTHE bDDd3mK8Y3AkSmaDe0GwRs+ln4HvTYtcX1oM50mcGuY/HS7zOg+a8bZyntTjzxckAjiz eW3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=L8nrKPMi; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si19566286edd.560.2021.08.09.21.20.00; Mon, 09 Aug 2021 21:20: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=@nifty.com header.s=dec2015msa header.b=L8nrKPMi; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237124AbhHJAH2 (ORCPT + 99 others); Mon, 9 Aug 2021 20:07:28 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:28788 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237108AbhHJAH1 (ORCPT ); Mon, 9 Aug 2021 20:07:27 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 17A06ZeT022827; Tue, 10 Aug 2021 09:06:36 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 17A06ZeT022827 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1628553996; bh=JjfxB/NWBg6Ktsgql9hFjDsswtW13cjHVcXKJN/HvB8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=L8nrKPMiFzkWiSZ1GVQYdzO47hlpkYHhAspKesCgblfesCiZAt/K0aUt84N2jrK2u xPkcmooAFQczDF9yGo/PXMWGlkisP3ici1IeTadRa6I9KKK+nAfrGQPuG0KGxwtZEz Ds8ClTxNga+xFcM4H6lsL7GYpuSRlUx7ftXrbur2PG4zXfF0IzCkrbKkGV+ryMs/de ENP07lym8+xJuE7Lb9LuYJcIJAkw1s1NkdMWNLvXlfY0eOZ7H48/KnRadgtJtUi8G/ Dibhn9Hv5bW4OiGI5LKNT+trSkEQEvtZyvxKQOjfkrPAquo+OvXkI1otuqPuJbESiM Odo/M9aBB3XaQ== X-Nifty-SrcIP: [209.85.216.43] Received: by mail-pj1-f43.google.com with SMTP id w13-20020a17090aea0db029017897a5f7bcso2584985pjy.5; Mon, 09 Aug 2021 17:06:36 -0700 (PDT) X-Gm-Message-State: AOAM531lnsUGHcu/gQFjCcO1FMKYIBFUpLjkWYUXlkJaYoCBz+gy2OP4 6KiI2T2DcTjErALoKPv7a94QdKCVQps6utdSzjY= X-Received: by 2002:a17:90a:7384:: with SMTP id j4mr24142360pjg.153.1628553995364; Mon, 09 Aug 2021 17:06:35 -0700 (PDT) MIME-Version: 1.0 References: <20210805150102.131008-1-masahiroy@kernel.org> <59ce441e-8deb-39ff-700f-4e1c4e871177@kernel.org> In-Reply-To: <59ce441e-8deb-39ff-700f-4e1c4e871177@kernel.org> From: Masahiro Yamada Date: Tue, 10 Aug 2021 09:05:58 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kbuild: check CONFIG_AS_IS_LLVM instead of LLVM_IAS To: Nathan Chancellor Cc: Linux Kbuild mailing list , Albert Ou , Michal Marek , Nick Desaulniers , Palmer Dabbelt , Paul Walmsley , clang-built-linux , Linux Kernel Mailing List , "open list:SIFIVE DRIVERS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 6, 2021 at 3:46 AM Nathan Chancellor wrote: > > On 8/5/2021 8:01 AM, Masahiro Yamada wrote: > > LLVM_IAS is the user interface to set the -(no-)integrated-as flag, > > and it should be used only for that purpose. > > > > LLVM_IAS is checked in some places to determine the assembler type, > > but it is not precise. > > > > $ make CC=gcc LLVM_IAS=1 > > > > ... will use the GNU assembler since LLVM_IAS=1 is effective only when > > $(CC) is clang. > > > > Of course, the combination of CC=gcc and LLVM_IAS=1 does not make > > sense, but the build system can be more robust against such insane > > input. > > > > Commit ba64beb17493a ("kbuild: check the minimum assembler version in > > Kconfig") introduced CONFIG_AS_IS_GNU/LLVM, which is more precise > > because Kconfig checks the version string from the assembler in use. > > > > Signed-off-by: Masahiro Yamada > > Reviewed-by: Nathan Chancellor Applied to linux-kbuild. > > --- > > > > Makefile | 2 +- > > arch/riscv/Makefile | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/Makefile b/Makefile > > index 4ab151060931..8b56c9692c3c 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -844,7 +844,7 @@ else > > DEBUG_CFLAGS += -g > > endif > > > > -ifneq ($(LLVM_IAS),1) > > +ifndef CONFIG_AS_IS_LLVM > > KBUILD_AFLAGS += -Wa,-gdwarf-2 > > endif > > > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > > index bc74afdbf31e..dcfbd2a87d41 100644 > > --- a/arch/riscv/Makefile > > +++ b/arch/riscv/Makefile > > @@ -41,7 +41,7 @@ endif > > ifeq ($(CONFIG_LD_IS_LLD),y) > > KBUILD_CFLAGS += -mno-relax > > KBUILD_AFLAGS += -mno-relax > > -ifneq ($(LLVM_IAS),1) > > +ifndef CONFIG_AS_IS_LLVM > > KBUILD_CFLAGS += -Wa,-mno-relax > > KBUILD_AFLAGS += -Wa,-mno-relax > > endif > > -- Best Regards Masahiro Yamada