Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5150441pxb; Tue, 28 Sep 2021 11:35:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT/J10oOY4l9nBKco2qvLrRF2Vi3C3kIPY7CQyfMLQjZNpf6GLcQ81G80agMmcu+knfVaw X-Received: by 2002:a17:90b:207:: with SMTP id fy7mr1451549pjb.91.1632854115469; Tue, 28 Sep 2021 11:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632854115; cv=none; d=google.com; s=arc-20160816; b=w2zqtGLFq7n3SZSvXIt+jU+joNRUgtIZsksrTUfae/qnfhYL9zmIrNCTxsoCCiLZCo FTHDJcoHZidIncVziMewvZMkxWC+Nug7STn2X2GWx+vsI1yDhIsbOCPwB4stauXoniXy lxuwSEbmF5JKulpCvHIuUf7wI3uETAn6qobpzBHOTTg5PvZCS3hbRnjsxfUyJ2TmfisD AfKoYuJbfWO3eytHmHxwjKRj4BSXJ74GlFYhaUpumL/1SEn5ZTmzfpmCxrHptZlVV+TZ 2+MLL0WQ91sjPc4iVbhp/XisDfCF2JcvxBJ3oiuv+1y1lSL04+znDJJ69yKOMxJNi4+z UdKA== 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=tkHGlo46MbecJs8Fngi4ioSosU7T4cGEmhpvUiAJ+gg=; b=N7+VqSSWfduxS/d3JMzMV3XNvjU+KuKcQMRtfdQoVn5teU1wT2CtnMddAAXMyGPfcR /fZpLpqWJFgRF6043Cl83pkdfE3ojE0lpzN0GRTswFJTtSou3WgBiHmpQsuTWmWlf+U8 uV+7auVPiqs/H413B+ut2v4koVv4DGPArX1rjJ66AeJJdkul5cUl68AxNSF13sb5wdCV toPFJKXbxJEJhd7KmBfi6FUZo1/Nl9s9GBTzwrM9hNLSpnJRfFcfUk7NLk9nbJVN9/9e s0zapqn6zBiXqaw0Lz7arP4pwphNRQld+5GWwLCBcgGCsAWrF8Rq+aRlIyrrjL3aR+cd nFuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c8vbNT1b; 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 t4si27104860pgk.386.2021.09.28.11.35.03; Tue, 28 Sep 2021 11:35:15 -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=@kernel.org header.s=k20201202 header.b=c8vbNT1b; 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 S242449AbhI1Sew (ORCPT + 99 others); Tue, 28 Sep 2021 14:34:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:42614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232723AbhI1SeD (ORCPT ); Tue, 28 Sep 2021 14:34:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 26B8A6137D for ; Tue, 28 Sep 2021 18:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632853944; bh=2Cj4UNam1DG/TfnGcPZjXfeZcarvPrxFJFfENW16COM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=c8vbNT1bkHV+TQ5VOlKOa9e/ZAIcGImKnfw1tcmr8ToDLZEnD/E75J4DbFrCrfbyq YR1AsYOFD8+X+absvEesJKUW4ncKI2jQ3ixy7r2Jg58tlZ5svSHuPl5pI4OqfJhYpU VOysgQWo+o3F/pgJDc9pgz1ds0AocRKtColKM73AzFQfV7tLWOhsB97nnwxClbr6PT jMagx1rZbYuGrepZjJpJtkLvwX0Apm3g5o6NN34XEoDJxxs9Fl2+GxlJ6Abm1oYLS4 hyHOdrJz0KN66oale8aRrIGDuqsIom7cjKvciNxnff+NYYglNoI3OY7L3lg7IWftSD x4pOjC2DfaiNw== Received: by mail-wm1-f52.google.com with SMTP id b192-20020a1c1bc9000000b0030cfaf18864so3441171wmb.4 for ; Tue, 28 Sep 2021 11:32:24 -0700 (PDT) X-Gm-Message-State: AOAM532nNwndALSGEPkdu9towKDSwEzwGvwvJ8vipCjwAu/L4wqUnDqp BUrHo/IxqYgwAooGBPK5lPKp6AFJS8LsrKgCEqY= X-Received: by 2002:a1c:7413:: with SMTP id p19mr6359970wmc.98.1632853942677; Tue, 28 Sep 2021 11:32:22 -0700 (PDT) MIME-Version: 1.0 References: <20210928154143.2106903-1-arnd@kernel.org> <20210928154143.2106903-14-arnd@kernel.org> In-Reply-To: From: Arnd Bergmann Date: Tue, 28 Sep 2021 20:32:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 13/14] ARM: use .arch directives instead of assembler command line flags To: Nick Desaulniers Cc: Russell King , Linux ARM , Linux Kernel Mailing List , Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 7:10 PM Nick Desaulniers wrote: > > On Tue, Sep 28, 2021 at 8:42 AM Arnd Bergmann wrote: > > > > From: Nick Desaulniers > > > > Similar to commit a6c30873ee4a ("ARM: 8989/1: use .fpu assembler > > directives instead of assembler arguments"). > > > > GCC and GNU binutils support setting the "sub arch" via -march=, > > -Wa,-march, target function attribute, and .arch assembler directive. > > > > Clang's integrated assembler does not support -Wa,-march (and the logic > > to overrule one when multiple of the above are used), and this can > > cause annoying warnings such as: > > > > clang: warning: argument unused during compilation: '-march=armv6k' [-Wunused-command-line-argument] > > clang: warning: argument unused during compilation: '-march=armv6k' [-Wunused-command-line-argument] > > clang: warning: argument unused during compilation: '-march=armv6k' [-Wunused-command-line-argument] > > Note, the above lack of support was fixed in clang-13. That said, both > Clang and GCC defer to -Wa,-march when -march is also present, so > clang is still correct that -march is ignored. Thanks for resending; > this is still helpful for earlier releases of clang that we still > support. The -Wunused-command-line-argument warning also caused a build failure for me when building with 'make W=1', and I think there are cases where the flags from the command line are contradictory. Isn't the patch also needed for LTO? All I know is that with this applied it all builds, but without it I run into link failures. I can dig more into the specific failures, but overall I think this is the right thing to do anyway. Arnd