Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp869106pxb; Wed, 29 Sep 2021 11:21:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWIfCxwSNGk7xSStJWD7Py0pVdnzzAuOhcvw2YJW+gK6s4p5O5YhWavPlCRcOsSjjcHdVl X-Received: by 2002:a17:906:7804:: with SMTP id u4mr1448692ejm.462.1632939673296; Wed, 29 Sep 2021 11:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632939673; cv=none; d=google.com; s=arc-20160816; b=VqpDtEDZuGzvstlfQ63eqQ4ItLSYffTRduhHu3th12480KPiMcK/gHp0GSVSkLSnlQ bBvv5r3NWJdVDEErGke3LcjUnNcbSq02EhQ5B5TOj3GgDYOsBv+fT5JZcukcQd1DfeEr jVDwfaAqvrRcVTbzy2hvDNHPpUCNI7y3OHa4NBGbGYRRrIcpi3ImT4cfrifnVbFbZTka 4ld1cH+U4Hr59nyyCUOCJdOrOaBQ0X54xhP0bApkfSSlwiWIzL3cTOZC0Nx6MJqr92zs atnJZujpZYt1H/xiNk0YuBqWWEASpB56A/zY30gwc42TMzp8gUBjd8bXWypkg1/Qddjd w6Sg== 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=darTaYjh/HzMyOnQZo4wZWaaX6Bde0YYCPhfvHaUrC4=; b=d/97UKmiRZLZCkBkN0YByHlRnyMdI4AevHxento4UYiSfeO9EDZLxXi8FWiqaF2Lgg ZK5A+0SSkfPqn1vFCLWfxOeRSRNTvwfDeremj0U9KcPWUcCboIzyRSITqayK/W+1vXQ7 XOcTq3cI0yRjef27XKvQjhRusANNu9F/c/JLbfpbc7Wzi0SjZW0Tb8QrH0es7RNRsFO8 uk6YZFIhI2nO/UT2St+LO6/Kt06aBmYOuujM5986Zmb2iHcSi82K4xYhV8T2KBck4yEg MjmSRsmo2dgTZr7zFDSnDsbu0uj/RNq8cScXY7fwwMgQ+d/EvoJNO0izqtPelNNi6aKB gAkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Q4P6sp3w; 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 gc38si693749ejc.479.2021.09.29.11.20.48; Wed, 29 Sep 2021 11:21:13 -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=20210112 header.b=Q4P6sp3w; 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 S1345465AbhI2SN1 (ORCPT + 99 others); Wed, 29 Sep 2021 14:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344188AbhI2SN0 (ORCPT ); Wed, 29 Sep 2021 14:13:26 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC781C06161C for ; Wed, 29 Sep 2021 11:11:44 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id x27so14271616lfa.9 for ; Wed, 29 Sep 2021 11:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=darTaYjh/HzMyOnQZo4wZWaaX6Bde0YYCPhfvHaUrC4=; b=Q4P6sp3wdghNEbGf/cF3WEhwYpEiQ35+J9c0qa+e+KsXULo4Xnfb5/yMjqGq/Voo3+ Z73qml5kv2ZIgBWSHLD7bpBcV9p5TryY/8rOwBQtKD0yktFkB/GV2SYbXSxhd5EAvA6/ VKGJe48DVz5ndJ6v5hoGZT96oemsZo4tJ2xWUFVUMxAcrl1gUcHCbAxOGL/yeM1mxWer RkRlVdrSUD7AU6OoCTHhYQS5erzpon0+9QpUBP7mF4hbuP11BNAwICkNjjb7D3jsADfZ 1hpSVkhtQBZdYEX9hx4uUttMXVfUWZgMOqWBsguwtUiLCXlrwBS8NbB0WsxPzbwGgYeI LwjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=darTaYjh/HzMyOnQZo4wZWaaX6Bde0YYCPhfvHaUrC4=; b=VAom4UxayJXr7oxxo4QgZIM2cd3CvYIdybE0WhGZX4dC+4Yxe58rHnlkBdS4sr6TI8 ZmwP+wa11sCP/MbidMA+HaOUVevgPYSSj8BnXn7S6GhIlUchCa1KKFEx1p5jbPNteuZ7 cYhzsb2XP4pNVoFApyMF1PjJGWNzgblIQk+eV/WxznY23W4n8wT++y41O0m3KtPjDMm8 IHCrpks8zVXj/U47cuqKPzQsjCeojlhWBXmTkkmQo6H91s7wQGZG/4eg5nIpM4ys3ZzI MDDvRoXvdUrNLPp6j5UxJS7t5U3EyGTthjf1ezTV+zUFWAY/Qsd4IOZGPbPcMQbUxKf0 qMWQ== X-Gm-Message-State: AOAM530b5ZGzisrqyYa2WX4SVxZe1zA5fQSrhE4fjUk14ogwHP+1O+5Z sJ8uQ+k/ZUjMitXCwFZzvNkq/3omcRKZz4TlQGYqrg== X-Received: by 2002:a2e:5059:: with SMTP id v25mr1400586ljd.128.1632939102990; Wed, 29 Sep 2021 11:11:42 -0700 (PDT) MIME-Version: 1.0 References: <20210928154143.2106903-1-arnd@kernel.org> <20210928154143.2106903-14-arnd@kernel.org> In-Reply-To: From: Nick Desaulniers Date: Wed, 29 Sep 2021 11:11:31 -0700 Message-ID: Subject: Re: [PATCH 13/14] ARM: use .arch directives instead of assembler command line flags To: Arnd Bergmann 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 11:32 AM Arnd Bergmann wrote: > > 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. There's also -Werror now, which is hurting allmodconfig builds. > 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. We don't support LTO on 32b ARM, yet. I would be interested in getting that support working. > I can dig > more into the specific failures, but overall I think this is the right > thing to do anyway. I agree. I was just adding additional context to the commit message via my initial reply. -- Thanks, ~Nick Desaulniers