Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1620572ybg; Thu, 11 Jun 2020 14:57:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnC7Dr+1oY3iLOH84+rv3cS30Byg+Nlk0D0XKk3aU5Wj0RO/Rmeo093z8P8ymrIic3pPg2 X-Received: by 2002:a05:6402:1b01:: with SMTP id by1mr8756313edb.20.1591912621719; Thu, 11 Jun 2020 14:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591912621; cv=none; d=google.com; s=arc-20160816; b=MQwKhM/sChFxwHjFwandBct8RaF06vtGErSfdwV7UVOXm1H5BRfzSTjAHM2SBT+7zD ArCIUWP+EKR0UWph3rfeeT+2M8ca1cUotpbaj4WeIO/pO94ZWdaha8cVUwZalqNsQDFU q3j9+z5X4n3PmRCGJgDeLJ6tz5y6acTtwPx5dJqgYeHY11q+vfLGLg4sU9c7xJhhVPEM nnpfqAFhd7qb7yZcYEPLSJ5o7u9v6bz4iM+DQsH0Rev5oEG48dD+1W5hPef/MirAO4VE Td2kxxBCorHGUKlObd7E6E94jtrGW5FEhHjsRlSbpkEIXv63VBoP5p6I8ONZB0Wu6She lJYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=p3wy0jN/XH2mzyQo9Wt2q7wi5RLfChelMdRigqSs1O4=; b=WjqSks4UOaHo89XFo6DTN8Pl6/TgdKDMIc0x/Dkoxli7tLlMArqp5fhbxemCRigquF 7Ch1tpUWZSiJXxmDZrOpmUSSGIUHoQGT/feLJ43JXKn2v6rwjLpGQ2w4Zs0W8s9aILtD GJF1DNTvPAAWMGKYoKyM0qhpBPGdyqX2Ug2wZnv547qtB4h93FraqOUhQe00UKdrISla b6XXUBnozDsDR8y6frvnVsHlWvE74rUHbvCm/jngqWZ2cKbEC5oYtW4pO/nHcop1tziK q8w0rou/be3TAxdXf0y6hoCEhocrPL+WUXCLfAAzWVP4oS4NWuloAP97uIxPTe0Nno0G QAtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VdUB92tJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si2853504ejn.727.2020.06.11.14.56.38; Thu, 11 Jun 2020 14:57:01 -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=fail header.i=@gmail.com header.s=20161025 header.b=VdUB92tJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726317AbgFKVwc (ORCPT + 99 others); Thu, 11 Jun 2020 17:52:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbgFKVwb (ORCPT ); Thu, 11 Jun 2020 17:52:31 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB427C03E96F for ; Thu, 11 Jun 2020 14:52:30 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id q8so7133191qkm.12 for ; Thu, 11 Jun 2020 14:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=p3wy0jN/XH2mzyQo9Wt2q7wi5RLfChelMdRigqSs1O4=; b=VdUB92tJodDU/F8uo3TTTlMOMyBHo/GOD79C4S8FGl3MjThPq8EjLLOEz8gLy3Y5bd 7UKzqIJoVpuzjOZfuFizkns2AMk1h3txC1gAgd+hUNUBcAGefqBVdXrcaad7PqhGQqrM oiyKTHQlSkICWTR6tXzIduwZFqIaWFeslQsbUL8j+EZuhBfmEo4agUyb4avj6zszSb2S OLWUZQLzTKGKGrfe/h/q3wm+O7Jbhuf9Zf3Q767aKyPRvEjbSTNPyaV+Ygrc4vVVdvIF cU/wH3Zvspi+AkJWLpOoqKoZQHM41HfsNHNesZQWTovWqWynD4Jq0pC+o+S7RtD9vRzg Go/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:date:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=p3wy0jN/XH2mzyQo9Wt2q7wi5RLfChelMdRigqSs1O4=; b=fletEppcBa2UbDmw3u4EoSU/UPzPQQgE04A3c860omuJZXH8Lg5Y89moGTMzbuBXy1 Q8G01FYz7tYyI+Y/1n0SVY3+KpA0jFduw1NNRDwdSisD9s2Dk2n4K3g2HXtTUd7/QwGg 4N+p2GofjarM8dcdfnV1F8vbH+6tYuMGreVeojYYQ7ilM3RrHjkDtsz0bWfJ3oiFWwIm rY0or9Gq6pcf1YkTVD3BvSYYPpMGp40Uw6N31E4KUHKFWgoL23xTY6qHGFcStzjBH2nD 3u/a66rHsI3XCyFARD7Uv46lOje/WdXfFaTdVfuGydn1Y9lZ+OQobKxZ5UgfrwY//uUm ynpQ== X-Gm-Message-State: AOAM532wY8LcFPGKXLvoADT8G1KpPhmu3dCvHTaiE6xe9RcI+LLv1IPQ 0UhZfpP50T3GoMGNw8IOqtxwjsmD X-Received: by 2002:a37:7c6:: with SMTP id 189mr91374qkh.24.1591912349838; Thu, 11 Jun 2020 14:52:29 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id n2sm3092439qtp.45.2020.06.11.14.52.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 14:52:29 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Thu, 11 Jun 2020 17:52:27 -0400 To: Nick Desaulniers Cc: Arvind Sankar , Masahiro Yamada , Fangrui Song , Rong Chen , kernel test robot , kbuild-all@lists.01.org, LKML Subject: Re: [PATCH] Makefile: Improve compressed debug info support detection Message-ID: <20200611215227.GB3924125@rani.riverdale.lan> References: <20200610063715.v2qrqvwtegdxdwzl@google.com> <20200610191106.2662548-1-nivedita@alum.mit.edu> <20200610233046.GA2941409@rani.riverdale.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 02:09:21PM -0700, Nick Desaulniers wrote: > On Wed, Jun 10, 2020 at 4:30 PM Arvind Sankar wrote: > > > > Yes, the gcc driver reports an error when deciding what to pass to the > > assembler for -gz=zlib, if it was configured with a linker that does not > > support the flag. It's even more weird actually -- if it was configured > > with a linker that supports the flag but an assembler that doesn't, it > > will silently eat the flag when calling the assembler. At least that > > won't break anything, though none of the .o files will be compressed. > > Not sure whether we'd like to prevent the option from being selectable > in that case, or just to silently not compress the debug info. Given > that the compression is an optimization, it doesn't hurt to silently > not do it, but it would be nice to notify the user their toolchain may > have been misconfigured. Though another part of me feels "garbage in, > garbage out." > I don't think it's worth trying to detect it -- I can see it in the source code, but it should be highly unlikely for a gcc to be configured this way. Btw, it looks like if you configure gcc with LLD, it will enable this option only because it thinks that "LLD 11.0.0 (compatible with GNU linkers)" is GNU LD version 11, which is bigger than 2. Is that intentional :) > > No, as-option does invoke the assembler. The problem here is that with > > -Wa, the option is only seen by the assembler, not the gcc driver. So it > > will succeed because the assembler supports it, but it will not test > > whether the gcc driver also supports it. > > ^ Those 2 last sentences should go in the commit message, as the > current form doesn't allude to that. Ok. > > Reviewed-by: Nick Desaulniers >