Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1870897pxu; Tue, 24 Nov 2020 10:49:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy0bz6qxKvhEuBYfBuxSRCC4vnT4JgrSm+RZaOJ7ubwu6AWzNbW7SZ0PrdyHLfs50yMF2Y X-Received: by 2002:a50:c28a:: with SMTP id o10mr5209005edf.222.1606243746353; Tue, 24 Nov 2020 10:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606243746; cv=none; d=google.com; s=arc-20160816; b=a+d5duV7Cl1BeyknN/Wpw9NY8r895k/1mOtpxR4eysn86ujknNLanXiCdF3yMHaOZE bcvgfstpK5aROX24Iof52U6v2mtXRjELc+zf/OeDms4uinyzaDyjAlgnsYzE6BJj/laE X30jrO/+7Ab8+J4KOhrIbwcDSoMS1NE8IRYR6BywQj95HFr3x2KF2ImU57xrXBhqc3f2 0hzF5ZgusNTcBiOPPDTse09wl0RI6waN6zgjBEBrnt2f++J6EyxP+xd5PKSRgTv5EAGy rSlmBRQlcFv5wPsSutl0eM5YB7uDFMRSDP9ID0PCtNA/phSi0rYlPnbzJofL2V01Ud7+ t/VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=viqmAjpBDNKBM55ep9S4CFsZN2+b8yf9v5jJjKojcF8=; b=has+VzjccsCQN7iy1SiItSXaw8HI/aitWdqjIOnTWrYkUn/dq1eTvYUGdO8i9CCuXA iWou56MShIISPdFqk3UBcqFfQxvXvF7dH770t+f9xkrZKQu1bTyCK7eCiINBuEnV50pE slrT4A9kw+6PWGO3fVjsaQjEW4KRFx7AAb+MUfc7EAlQXEB/e+bNeYrxzvw6G5qkYzRD gfc/Ts2oPrxeiiG58z69nEm8rdBCaEnFRKJkbtKUukGQmDtmioii9vTgipvAhxqtdAm3 fCRrGmpZAbl/3cib7ZprXCb5NykqXqhpqWPtZ9kRo7kyxYZTvCbo2qtKgAQCxpNE/mQY kBjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=rSx0asH0; 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 g24si9134731edj.168.2020.11.24.10.48.43; Tue, 24 Nov 2020 10:49:06 -0800 (PST) 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=rSx0asH0; 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 S2404330AbgKXSp4 (ORCPT + 99 others); Tue, 24 Nov 2020 13:45:56 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:57445 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404000AbgKXSpz (ORCPT ); Tue, 24 Nov 2020 13:45:55 -0500 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 0AOIjaBY023672; Wed, 25 Nov 2020 03:45:37 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 0AOIjaBY023672 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1606243537; bh=viqmAjpBDNKBM55ep9S4CFsZN2+b8yf9v5jJjKojcF8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rSx0asH0lSiArQDnjFC2er4R/FRVJXeXBlxly1vuVu9fui5fPGG/kAyE2wX6PW9sT gM4EneuvPD3LWnj4DkokC5PS6PVKxwckKntEhSkEGoYQEFVPx71JRT0OXVYQDMAQLv mY708OC1V7c2cVpAkcwP1X0GRouiz/byAxFQkzh7WPAHOUgEPxt15KcWDPobqicS84 ZcEC27gV/itbt+IsiCdAnRueqYlLajVgTaXA7b6RXl80gKF9vhafo0HFl3cVxWAVqZ j4KO5UvH6BfyM66Hn/W7JGCpwPrDHioIlIkB4TToHEgK88nZMauBUIOqcszMB8ZmjF GxJhnnjeL1cdA== X-Nifty-SrcIP: [209.85.215.178] Received: by mail-pg1-f178.google.com with SMTP id m9so18262424pgb.4; Tue, 24 Nov 2020 10:45:36 -0800 (PST) X-Gm-Message-State: AOAM532BI3whtecl5nieCjWaHEr+UqzNDw7YWdsTrZoVI9QyAmXEMKL3 hURzyZ3v1BPgeB9HDR9KZvPfbZvt53IAYaPBk4k= X-Received: by 2002:a17:90a:5905:: with SMTP id k5mr3606612pji.198.1606243536107; Tue, 24 Nov 2020 10:45:36 -0800 (PST) MIME-Version: 1.0 References: <20201109183528.1391885-1-ndesaulniers@google.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 25 Nov 2020 03:44:58 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] Kbuild: do not emit debug info for assembly with LLVM_IAS=1 To: Nick Desaulniers Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , linux-toolchains@vger.kernel.org, clang-built-linux , Fangrui Song , Nathan Chancellor , Sedat Dilek , Dmitry Golovin , Alistair Delva , "# 3.4.x" , Jian Cai Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 24, 2020 at 3:42 AM Nick Desaulniers wrote: > > Hi Masahiro, > I would appreciate any feedback you have on this patch. > Applied to linux-kbuild. Thanks. > On Fri, Nov 20, 2020 at 3:58 PM Jian Cai wrote: > > > > I also verified that with this patch Chrome OS devices booted with eith= er GNU assembler or LLVM's integrated assembler. With this patch, IAS no lo= nger produces extra warnings compared to GNU as on Chrome OS and would remo= ve the last blocker of enabling IAS on it. > > > > Tested-by: Jian Cai # Compile-tested on mainline (= with defconfig) and boot-tested on ChromeOS (with olddefconfig). > > > > > > On Mon, Nov 16, 2020 at 3:41 PM 'Nick Desaulniers' via Clang Built Linu= x wrote: > >> > >> Hi Masahiro, have you had time to review v3 of this patch? > >> > >> On Mon, Nov 9, 2020 at 10:35 AM Nick Desaulniers > >> wrote: > >> > > >> > Clang's integrated assembler produces the warning for assembly files= : > >> > > >> > warning: DWARF2 only supports one section per compilation unit > >> > > >> > If -Wa,-gdwarf-* is unspecified, then debug info is not emitted for > >> > assembly sources (it is still emitted for C sources). This will be > >> > re-enabled for newer DWARF versions in a follow up patch. > >> > > >> > Enables defconfig+CONFIG_DEBUG_INFO to build cleanly with > >> > LLVM=3D1 LLVM_IAS=3D1 for x86_64 and arm64. > >> > > >> > Cc: > >> > Link: https://github.com/ClangBuiltLinux/linux/issues/716 > >> > Reported-by: Dmitry Golovin > >> > Reported-by: Nathan Chancellor > >> > Suggested-by: Dmitry Golovin > >> > Suggested-by: Nathan Chancellor > >> > Suggested-by: Sedat Dilek > >> > Reviewed-by: Fangrui Song > >> > Reviewed-by: Nathan Chancellor > >> > Signed-off-by: Nick Desaulniers > >> > --- > >> > Makefile | 2 ++ > >> > 1 file changed, 2 insertions(+) > >> > > >> > diff --git a/Makefile b/Makefile > >> > index f353886dbf44..7e899d356902 100644 > >> > --- a/Makefile > >> > +++ b/Makefile > >> > @@ -826,7 +826,9 @@ else > >> > DEBUG_CFLAGS +=3D -g > >> > endif > >> > > >> > +ifneq ($(LLVM_IAS),1) > >> > KBUILD_AFLAGS +=3D -Wa,-gdwarf-2 > >> > +endif > >> > > >> > ifdef CONFIG_DEBUG_INFO_DWARF4 > >> > DEBUG_CFLAGS +=3D -gdwarf-4 > >> > -- > >> > 2.29.2.222.g5d2a92d10f8-goog > >> > > >> > >> > >> -- > >> Thanks, > >> ~Nick Desaulniers > >> > >> -- > >> You received this message because you are subscribed to the Google Gro= ups "Clang Built Linux" group. > >> To unsubscribe from this group and stop receiving emails from it, send= an email to clang-built-linux+unsubscribe@googlegroups.com. > >> To view this discussion on the web visit https://groups.google.com/d/m= sgid/clang-built-linux/CAKwvOdnxAr7UdjUiuttj%3Dbz1_voK1qUvpOvSY35qOZ60%2BE8= LBA%40mail.gmail.com. > > > > -- > Thanks, > ~Nick Desaulniers --=20 Best Regards Masahiro Yamada