Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3228879pxt; Mon, 9 Aug 2021 21:20:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvRNUHX3DOumAAqPLjB+jqKLRClwDo8CfchozRH/NvV24LnlHFgdqkYQyQvlHAenCsHB6n X-Received: by 2002:a05:6402:4384:: with SMTP id o4mr2483227edc.124.1628569225555; Mon, 09 Aug 2021 21:20:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628569225; cv=none; d=google.com; s=arc-20160816; b=Y+cyKaPcqJA5UmuwNV8SpFo6npYXlT5PPYpLIkSuSsj84Cm3z4mX7PVnDE3CFerz0Z tEGm467kDFQr+UIMhkLbYpZ2q+CB0LPiCmdugCbmymJpchoHLdiQn6jhNG5WUWzOtA4G dAPhQ5P34w9E7soF20nVs9DVsjI8/bjH9cp4PtnnTncp2Pp9xOmZdwta5CwxPaCAuGkB mizEO0JzJCbRUb9nBpAIxaP+Ak/NaKKV+/0tNjwlFzd+XkkjGjb5ycpZtHG63tK0Nns8 xMR6E3ksqTr61wPW3vW1j+s49AMVOKgsi0Gwmoi4XwO7v4goWC9SCpoWXHvRxULskfj+ 9W4g== 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=YHT1wdO9BJeEnVYWadet580A1QtIyBQoR9aiFtvfZGQ=; b=QznyE7X077mUeUEjg0d630rOWjQoE60HO7V9CFTbEpQTeVtEoLpVxEV4D8eHtNF72h NU0Gr8FyCMqSH6uSJUznJdQaYz7TbrM8OHo0Q4Yi4Cp/yESsEo2oac4VHa/AZBeqhaYQ XoWL/AY2nNAjMJUxQQpJMlF6rk/BtjgUgmhA5GVWTPgGDHgItoZjxqz/vwyGYCNg2mep E0JWsjD9Ztt68Y+++bmQWhHNayvZUOOhfM4OS8xI+mvxiFmiD0FPGK/lBuf4s1yfJxaR 2IiWns1kKf3V9PuWAPZYACUMqQURs0/rmKIKWdjNFJJLO/hClckDWX1B0yFfAwB0n/va tDMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=qpeaZfj1; 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 k9si19527720edh.461.2021.08.09.21.20.01; Mon, 09 Aug 2021 21:20:25 -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=qpeaZfj1; 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 S237133AbhHJAH4 (ORCPT + 99 others); Mon, 9 Aug 2021 20:07:56 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:16916 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237108AbhHJAHz (ORCPT ); Mon, 9 Aug 2021 20:07:55 -0400 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 17A073gm027642; Tue, 10 Aug 2021 09:07:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 17A073gm027642 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1628554023; bh=YHT1wdO9BJeEnVYWadet580A1QtIyBQoR9aiFtvfZGQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qpeaZfj1S52In9OqzugDwJq7LR5sf7DfsN2Ra4D4/7Mj7Sk8kVQ+Ze4SEJu9nxAWr zuOtjmoizVRjdYz+IQ1+0hk8/3F2IkCEiA2JrFs51NCRM2ZTqC5Oz6bzK7nbjxIe86 Z4E0Ot1qLc47QDixlLSWr2EeR9DD9eoLOPKsiB/dE4KOQ+zO2rG8SnFmK9m//xIJyL IzO79wsh46l09Bdey5qYnr7xjz6Mp0DFimoh1qGoaQeyaHrOihwNammcKKBbKJDr2d Q0l6y+oOFPYo0z0mNu9C0TpATi4L3yAjIbTSVJ2i+uAHpW8cmyS4JrZDGyxB7uj4bb KYwCOXGXlc7XA== X-Nifty-SrcIP: [209.85.214.176] Received: by mail-pl1-f176.google.com with SMTP id j3so18531277plx.4; Mon, 09 Aug 2021 17:07:03 -0700 (PDT) X-Gm-Message-State: AOAM531hLOgbSq7Md+AJ3QkWY66rLc67hOigjihaUpsY84xskrgxQs6F qvHaWI/gIFhQlpeGGkqhjvbkS99C5g6YR9cK2tg= X-Received: by 2002:a63:dd51:: with SMTP id g17mr282732pgj.47.1628554022572; Mon, 09 Aug 2021 17:07:02 -0700 (PDT) MIME-Version: 1.0 References: <20210806172701.3993843-1-ndesaulniers@google.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 10 Aug 2021 09:06:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] scripts/Makefile.clang: default to LLVM_IAS=1 To: Nathan Chancellor Cc: Nick Desaulniers , Khem Raj , Matthew Wilcox , Michal Marek , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , clang-built-linux , Linux Kbuild mailing list , "open list:DOCUMENTATION" , Linux Kernel Mailing List , "open list:SIFIVE DRIVERS" , Michael Ellerman , linuxppc-dev , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-s390 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 7, 2021 at 4:53 AM Nathan Chancellor wrote: > > On Fri, Aug 06, 2021 at 10:27:01AM -0700, Nick Desaulniers wrote: > > LLVM_IAS=1 controls enabling clang's integrated assembler via > > -integrated-as. This was an explicit opt in until we could enable > > assembler support in Clang for more architecures. Now we have support > > and CI coverage of LLVM_IAS=1 for all architecures except a few more > > bugs affecting s390 and powerpc. > > The powerpc and s390 folks have been testing with clang, I think they > should have been on CC for this change (done now). > > > This commit flips the default from opt in via LLVM_IAS=1 to opt out via > > LLVM_IAS=0. CI systems or developers that were previously doing builds > > with CC=clang or LLVM=1 without explicitly setting LLVM_IAS must now > > explicitly opt out via LLVM_IAS=0, otherwise they will be implicitly > > opted-in. > > > > This finally shortens the command line invocation when cross compiling > > with LLVM to simply: > > > > $ make ARCH=arm64 LLVM=1 > > > > Signed-off-by: Nick Desaulniers > > I am still not really sure how I feel about this. I would prefer not to > break people's builds but I suppose this is inevitabile eventually. > > A little support matrix that I drafted up where based on ARCH and clang > version for LLVM_IAS=1 support: > > | 10.x | 11.x | 12.x | 13.x | 14.x | > ARCH=arm | NO | NO | NO | YES | YES | > ARCH=arm64 | NO | YES | YES | YES | YES | > ARCH=i386 | YES | YES | YES | YES | YES | > ARCH=mips* | YES | YES | YES | YES | YES | > ARCH=powerpc | NO | NO | NO | NO | NO | > ARCH=s390 | NO | NO | NO | NO | NO | > ARCH=x86_64 | NO | YES | YES | YES | YES | > > The main issue that I have with this change is that all of these > architectures work fine with CC=clang and their build commands that used > to work fine will not with this change, as they will have to specify > LLVM_IAS=0. I think that making this change for LLVM=1 makes sense but > changing the default for just CC=clang feels like a bit much at this > point in time. I would love to hear from others on this though, I am not > going to object much further than this. > > Regardless of that concern, this patch does what it says so: > > Reviewed-by: Nathan Chancellor Applied to linux-kbuild. Thanks. -- Best Regards Masahiro Yamada