Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1584815ybg; Thu, 11 Jun 2020 13:49:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxarPKMxpVo5M/7YF7Bx+oFXUSptWufA03SEMPXQAj4LFwxFlpcVIaoNyAhG92NbYkIh+DJ X-Received: by 2002:a17:906:ccd5:: with SMTP id ot21mr9858897ejb.508.1591908567917; Thu, 11 Jun 2020 13:49:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591908567; cv=none; d=google.com; s=arc-20160816; b=WTtj9zhKDC2DmYFPEMWW4UgNDCsQNgOs0kx/MZsIeXr+32lwzcJzxmQcTMOQBaL6v8 1YYbL/8ORTbjRS9lSIsETiMCzRXxnFHQwAM6EsMhBV/QFU8iOvtX5kKCYGgp4py9Tpwj huKnu73OsOJwZlCsx3BeX7Xfbg2Dzo81ulT29DKp+qRAFlzhOqKYwK9wIkwHnfaJkqjq JmYQG2dxq+5/nEPhGZ9EYm9KycYCcglAOn17DTCz9bgEZxHxHxFTnV/5HFhGmnRguLsv qsHXc3ZhIYpMSt9p+ohFWTIWkcQtstaI21QszgwSeFwA+U5eFE0GM7H95jAekCmoUIX6 Q7Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lgcyUinwCHycLb3PS81x+KxCtAyFp6vCMYT/i4Rn6Jc=; b=vn5HxCGPloa2RCO/gDoG/QW5Z5kdpM33MkPusz/cl2xieqbZHck/0rOp5l2Xpq9+Ot 45JVdCM04tLD1xVIIqpVrfMHNiUAu4MQoS+CAPJ8Lo4j3DNB3TPT83VUUwtoq+vWTLHW ODxhjnAKKkj2uJ2hZ9UFZpYMiNfeJe4BhX9hCP2edMNYfuay4eredm9dATJvpifxB7Lf 9IPEV4OqfP8SJaqN8wI1xaGOnTMM7WKbnYc+Rtld18E2OwDxOObCIDqJTAFjneB69wtq 6BJxOvbQWJBfZ609kaWT0LN5jCSSYy8iDUlPFBP+0cUqxnPydoa9eCKgENFPWrMpdPZQ 7QJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="jRr9sC/F"; 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 x72si2228973ede.303.2020.06.11.13.49.03; Thu, 11 Jun 2020 13:49:27 -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=@google.com header.s=20161025 header.b="jRr9sC/F"; 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 S1726277AbgFKUpG (ORCPT + 99 others); Thu, 11 Jun 2020 16:45:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbgFKUpG (ORCPT ); Thu, 11 Jun 2020 16:45:06 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED068C08C5C1 for ; Thu, 11 Jun 2020 13:45:05 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id i12so2684256pju.3 for ; Thu, 11 Jun 2020 13:45:05 -0700 (PDT) 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=lgcyUinwCHycLb3PS81x+KxCtAyFp6vCMYT/i4Rn6Jc=; b=jRr9sC/FDkOl0dzyf+kzIJ8byovnOp/JzipaTBCEV3P8CDgg6SaKYLRuzGnuEPbtKG rZl2thSbfJhDAoIl+DgNof2SWzHDCwMtVBdqqFGuXbWwAcdNkNNCa/DYzBywCd1fJkjX RlZI+keBh73n7/Z4yl57rA9/YQJ/foH1KF+Q0iJfwL6YXiyOwo5rqd6sIJeWVn955kle qTK3j8QhDgWMs+TSJEUIhUBrLvzrDeEXww0FlDRzb6KTN99H3lAxcyROZpBnK8tpX28p vJXW3U3nPlVBu2wdCKm+6WGL6rJnNAiQm27GvCeFmEwdyYMRirtVSxG1SFyn4Jg54fZx GERg== 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=lgcyUinwCHycLb3PS81x+KxCtAyFp6vCMYT/i4Rn6Jc=; b=EKX6gSWYcS1D36//n71ksWL6ustAINEenQcAla1eFYlCUdMsh14qFjimU/xPiKUh/4 cSgRoZWVhb9qnAR0INp6FLKy9hIw1RcXC6l8cjIoWnqrFwm1WLTZgCbptybhQMepHuqv r73up6NaDSeuNwoeMSqjTWFCT4fzda1nIiPF4WqnNsIxk8iMhhY8dBBfBiX7qAOmVyON EPQaXBwkwqA7oKQyfn/j2Wnx21Jc5kIZC11jAg/HEKN+cc805Oo4DEOOwz2z7+wmzeVf 5z32Vos0bKWl7SbcHr7EYl5ACCJlJt37p/QECEgEKJH+qzb4V4teDIyX5+WEkHx0aXYj EKmw== X-Gm-Message-State: AOAM5315dOdTQx20anzpCWbP812oXbole3Uzu/55rXMiN1fcCrSfgQRX Ml/Kpv96sa+oo913GbrUxIx/460BWQenNQi0SfidrQ== X-Received: by 2002:a17:902:fe8b:: with SMTP id x11mr8526903plm.179.1591908304657; Thu, 11 Jun 2020 13:45:04 -0700 (PDT) MIME-Version: 1.0 References: <20200610063715.v2qrqvwtegdxdwzl@google.com> <20200610191106.2662548-1-nivedita@alum.mit.edu> <20200610233046.GA2941409@rani.riverdale.lan> <20200610233954.GB2941409@rani.riverdale.lan> In-Reply-To: <20200610233954.GB2941409@rani.riverdale.lan> From: Nick Desaulniers Date: Thu, 11 Jun 2020 13:44:53 -0700 Message-ID: Subject: Re: [PATCH] Makefile: Improve compressed debug info support detection To: Arvind Sankar Cc: Masahiro Yamada , Fangrui Song , Rong Chen , kernel test robot , kbuild-all@lists.01.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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