Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1616772ybg; Thu, 11 Jun 2020 14:49:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuS/Tq8Gki4mdVSCq1Rr+ozIeIh+CABTCxe7Oo9P8bLBrKB/z3Dnzp0J+fz4/TErWs8zWy X-Received: by 2002:a17:906:899:: with SMTP id n25mr8296090eje.298.1591912162398; Thu, 11 Jun 2020 14:49:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591912162; cv=none; d=google.com; s=arc-20160816; b=te1JZNSOonf3mGVYV6+OLPJDhQVJjPRqCmJ5hOO/bguMUcfxZ9WlxGd/xT/hz10IX0 cOe8Zlb1CuLzGWdHRLIoQkFoaR9hUqCr2FUGo+Q8aSKPKzthl4QASWYFLXweUrYRDi5Z gR9jd5OEgzuE+COgrCXd7BD8I4TR/cfHX4f5Wp3uStUlpt60W/S23T0JNlLUyb9cQBDa +ptFLC5GyuvZATomTmLQ9hj41iB8fjhKzcPq0s9Xcv3WBiij7bynYkM+EFDR87jyNXZM spzYknjmGcJiebTQw401/dEzdIVIwLdkTFa6aytnudnPi6DEq6ehBm8piEGTA94Z3LVv qQYw== 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=vlGLqbRt1ysLw4LRieBzZ3hIExddgO1NFVFXED2H08I=; b=cBrgGAyvRDnkS8YI5JVlYBEhbGJhPTu8RevnkOENH/XJM9ZoxaV6uo+8AyP3SMyJYm G+iZCrkWXhArWCj2wT8CEBqXThphdy5ISwm7zA1/odtn39SKNWLDnF/GBrZyMfhJc55+ 95DHYmpv/n4mTZrSCLHEg8HBASuMNP5q9Or8nz0XiiacNgJFhYPKtmrHx9wuaZ+h4Lq6 dCZmQHfkP4K+AEnNqb8ygY7qYu/ebXTeURemhdKZOWQxWyJD24C344sj0mIaJkSwhe0F TPZlvlF6z8OsHZuDyuY7GSgkxihtd4AGLSy9MrKC+AXITfWRLSYsu/M5I38tBPAuE00y LhOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=quXCzrFv; 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 i24si2257754edb.577.2020.06.11.14.48.43; Thu, 11 Jun 2020 14:49:22 -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=quXCzrFv; 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 S1726285AbgFKVoQ (ORCPT + 99 others); Thu, 11 Jun 2020 17:44:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbgFKVoQ (ORCPT ); Thu, 11 Jun 2020 17:44:16 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DDFAC03E96F for ; Thu, 11 Jun 2020 14:44:16 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id g7so3470904qvx.11 for ; Thu, 11 Jun 2020 14:44:16 -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=vlGLqbRt1ysLw4LRieBzZ3hIExddgO1NFVFXED2H08I=; b=quXCzrFvs5Tj9kDSX86/yFxKZzQIPXpFVPaU1SFKyn27t1iZEUL5XoOqQUTDxSxZxF bIxYXxLAhw2mabxbIgeQW6sdeMovCY6PsfIgd6AJpIk6FNaL+GGo5dFidkXrAV0Spj7Z gu0iKu+MzhSIEK4Ob/BCoJD0AhILmyoKBn7K7lqNLk9TQLsaCdtKbIw4jYfT9WngLnNK +5ctoC+aIdao/kBiJa4xerA00rvDTKx4zSyPPSdu5mF84+gYrZ7BA30swFvQGu4zfQzw F71j3B7qoPUc8T48lRHSUisGdKOliNpLQv/R9g6uebruBrXSWXdn+sIGjzgqQT0UzD2d DB/g== 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=vlGLqbRt1ysLw4LRieBzZ3hIExddgO1NFVFXED2H08I=; b=a/EG4FCHJcTaG7/N4FRyPP6s8XVjcZr/LB0dvNbEANB+7+BqpE9e92eNQ0XrXt+68d CA3tW9mZYXzDXLcW2i1ONpfRGrgRfoqHoxE5KAICVGfoQs67vFE/SkSJPFzfzHRTzDEW dYc/i9Eb1XYqfWPQ/sarwPhvB0NkBx67GWey5mNLSw76gpesO1UB/7S+sUQ5Gfpko3/q mX3p497CwXZnfH7xr6JE/UqB8uT4XaabRzzMUl90o//KBIbme4yxpsVZgr3ZI5rfOoXw 4AMeUEQ5shYTIO+AtmwLjun7HgUauaEYG4GIf2UKnYR/X5Qq/0sQacnzXi+x3pDPqDSa s0uA== X-Gm-Message-State: AOAM533VQQZuE7i6ZPFkV2OgTiXdhDMnwOTFmAGBqqs9BMfY7Abg4TVO g7tnKkmArXIQJkjqtftoqGM= X-Received: by 2002:aed:2253:: with SMTP id o19mr55340qtc.236.1591911855402; Thu, 11 Jun 2020 14:44:15 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id s201sm3142424qka.8.2020.06.11.14.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 14:44:14 -0700 (PDT) From: Arvind Sankar X-Google-Original-From: Arvind Sankar Date: Thu, 11 Jun 2020 17:44:13 -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: <20200611214413.GA3924125@rani.riverdale.lan> References: <20200610063715.v2qrqvwtegdxdwzl@google.com> <20200610191106.2662548-1-nivedita@alum.mit.edu> <20200610233046.GA2941409@rani.riverdale.lan> <20200610233954.GB2941409@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 01:44:53PM -0700, Nick Desaulniers wrote: > On Wed, Jun 10, 2020 at 4:39 PM Arvind Sankar wrote: > > > > On Wed, Jun 10, 2020 at 07:30:46PM -0400, Arvind Sankar wrote: > > > On Wed, Jun 10, 2020 at 02:27:55PM -0700, Nick Desaulniers wrote: > > > > > > 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. > > > > > > > I think in theory another way to fix it is to just use -Wa even for > > CFLAGS, assuming the compiler itself doesn't have to do anything with > > the option and it's purely an assembler thing. Then you'd just do the as > > and ld tests. > > I don't think the CFLAGS are used for .S source files though. We may > drive assembler via the compiler, but AFLAGS are used in place of > CFLAGS IIRC. (eh, maybe not for ARCH=arc, ARCH=sh, ARCH=csky, > ARCH=mips) > > -- > Thanks, > ~Nick Desaulniers I meant just replace KBUILD_CFLAGS += -gz=zlib with KBUILD_CFLAGS += -Wa,--compress-debug-sections=zlib leaving KBUILD_AFLAGS the same as before KBUILD_AFLAGS += -Wa,--compress-debug-sections=zlib This would avoid depending on the subtleties in the gcc driver's support for this option. But -gz=zlib is passed to cc1 as well as the assembler, so I'm not sure if there would be some loss from not passing it to the compiler.