Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp902390pxb; Tue, 3 Nov 2020 16:07:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEP5VBY3/X+GcTDEYB+fm8d8Eo7eI+84VIaRf1tL2U5kTRRkuUu5nMxLiEL4cg8a9ew9nz X-Received: by 2002:a17:907:42cf:: with SMTP id nz23mr9293719ejb.138.1604448458889; Tue, 03 Nov 2020 16:07:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604448458; cv=none; d=google.com; s=arc-20160816; b=jbDn1+kjAEnrfzMduXSauPfvHewfp8EvkYsUSdNKtlJw8EDzr4D6foirA3uKjnwUqu o6dEelNLVJAJT3PAoHUt0XOI2ENufJ2RbCpJ8coBAgbx/j657ljWpCs/ffBakpznKnCp ppmpRaro+5KaGH6Q+2AOv+/Sobs1C/x17GiPG2C4GuE2cfkJxkCDoHT2khByJduNsxs9 zPg5ov5FXU2rqoKIhDz3yc31awwddfAQG55q/2a+T0sPWKDm7sciMX8B9dqaRtAUKNyu /HTvbYn9Ya1P4Jh/rgPH+UrsSQ3EwxebIeqBLY2Xh3FvqXOaMPbHFnERCYYktiZdpgEa 1mbQ== 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=IDPVpMjjQxmT8T6bAuv5nGEF9Cscu1+LLKKWzkBSO0s=; b=KDxH+51ZMhUyppJldG50IBhk/SfslbD715hpq3PHZjKw6tf1dJ2iA6vkYcZLDKXzcd h8NPsbNUW7Fwp2xuPKAG/eHqPTUXO3Hr1jqS5QuAZ2GnJ8qMwPuzEdy9c4dRKQLf4VT3 xOSTeqc45Jnd2MWybNg7HEqjp6uVCpepNU+7FulQSNv14UrFaxB3ndciXOchQf14VLbq XzMYVQw3IQtVZ2gdWeatz2cXWNaPsg3q+t/tAuiu7FdkFT57FxRaW1gRD7qXrxJd3uYf np5C/fzEl6LHpe5+mYbl3afrWPOFMZ9Jc5qxt/ZRaDNT/+WEf2zWaLgvsjn+vBMvqd1D XT4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=R0wn1eCK; 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 32si141399edr.232.2020.11.03.16.07.06; Tue, 03 Nov 2020 16:07:38 -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=@google.com header.s=20161025 header.b=R0wn1eCK; 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 S1729149AbgKDAFt (ORCPT + 99 others); Tue, 3 Nov 2020 19:05:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729021AbgKDAFs (ORCPT ); Tue, 3 Nov 2020 19:05:48 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E0CC061A48 for ; Tue, 3 Nov 2020 16:05:48 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id r186so15034430pgr.0 for ; Tue, 03 Nov 2020 16:05:48 -0800 (PST) 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=IDPVpMjjQxmT8T6bAuv5nGEF9Cscu1+LLKKWzkBSO0s=; b=R0wn1eCKGkIpdF7qPMDWF5Y9Lb9R6jSyf6aZRAPk7alVldWDSe6WLYFH7QJcvpVRpm D7Uh6sXlkwLfIzghi5mWA+Z/7XrrJT0Iq6QAIEDLibW6egy5U6Ee128wcKtYdNd9JlMM yRQgCt0QRnApGeusxYpJwHkb1DMFCIkH4SLvv/WD3WZEtYvurV6XVNpBEgG10mpABTgq 5v4Sj5nZlvuQcLpjc0t76D6IsFMNUzqy4K2wKNK21U5z9DARW8Lgg+zxgDkrl5HhPMhp Y3NEOMCnJVFsVM8I4IT/y4mZiMratvIMIvIwtJA3qu5gDI5ILmOlQrA1A37nVxAO5wEz yyGA== 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=IDPVpMjjQxmT8T6bAuv5nGEF9Cscu1+LLKKWzkBSO0s=; b=LQb3XVlqi8Hqq383cJRgIWZH9JHeSthhiA1jnc0LDhSH9E0Y/o3RzDsDPSlqw8W/ue Mh8uwPd6WqGANBgHlOxAvTIdpcsuLn4vhV6k3ju5TxkJ+P6rP8KgKLQd3R9Qvja+pT+J +GKRjArvhtLC96X8IF8VBsQ3BBvI53W9jFe8NcYesCvMp+cSp8liKuvShNEeiY+soBU9 y1TMR7bYF+2YhrB/jItFD67aBolldqU4SPW+h7sRuJN+wKokCjpmjr+r3TzIqh9Uo38R ishZSZ6o7FMba3znABLDeo5ALKWFiCQ9MJ+iBw/6k2/k+BOQu+4iVPnkelJU+oF7lyTO +cqg== X-Gm-Message-State: AOAM533mvyI7Q1WlKLk58WjWJ0X7X2VF2dIcunFSkWda+J6vriAgiUH2 ccRRi+Dp6JJW+6WhoeUBiTOcLzfX6ZlMdqeI000ixA== X-Received: by 2002:a17:90a:6b04:: with SMTP id v4mr1725520pjj.101.1604448347880; Tue, 03 Nov 2020 16:05:47 -0800 (PST) MIME-Version: 1.0 References: <20201022012106.1875129-1-ndesaulniers@google.com> <20201104000016.GA2399651@rani.riverdale.lan> In-Reply-To: <20201104000016.GA2399651@rani.riverdale.lan> From: Nick Desaulniers Date: Tue, 3 Nov 2020 16:05:36 -0800 Message-ID: Subject: Re: [PATCH] Kbuild: implement support for DWARF5 To: Arvind Sankar Cc: Masahiro Yamada , Linux Kbuild mailing list , LKML , clang-built-linux , linux-toolchains@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 3, 2020 at 4:00 PM Arvind Sankar wrote: > > On Wed, Oct 21, 2020 at 06:21:06PM -0700, Nick Desaulniers wrote: > > Further -gdwarf-X where X is an unsupported value doesn't > > produce an error in $(CC). > > Do you have more details here? On godbolt.org, gcc does report an error > for unsupported dwarf versions. > > https://godbolt.org/z/G35798 > > gcc does not seem to pass the -gdwarf-* options to the assembler when > compiling C source. For assembler, gcc will pass an appropriate option > depending on the version of binutils it was configured with: if the > assembler doesn't support dwarf-5 it can call it with --gdwarf2 for eg. > > If the user is using a properly configured toolchain it doesn't look > like it should be an issue to just use cc-option? I wrote the base patch back in May, and didn't revisit until recently. I could have sworn the cc-option silently failed for the check cc-option does, which is /dev/null input. I need to recheck that, but it doesn't hurt to simply include it for now, which I've done in a v2 I'm about to send. -- Thanks, ~Nick Desaulniers