From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CE7F9C433F5 for ; Fri, 21 Jan 2022 22:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kiLzbk2sl/B2hLGj0GMmRpHwal6+EBcP5GmmHBQ2r6w=; b=X+wY4ERjxFSAU2 soNSLENKQzJgaC4DFMvhisLIx/lSQ5dUHV+TktbIa1kT1BBTBjHo4gJYFuNxcZYddAsIU2Hg0GYoQ DmjbitrhafWu0H1iDEPUCMHacnWCTqIUuN+S9Rf1+fMrZMknmoutOzS36FxQZeqlI/Riun5hBb5tl qsxnZ8Hz8GW5aLyHMkFypxOXrp7Geunt4LEtYaSOz51ExTvvODQgMVmyDbbo14YZqwaBBcb821M/K yG+nfXc6t3l5BbrGSR2fBRDYn9ZOHzQGGDn8nDNrOhz/QuGsnCAoepWWC3kMLyqBwEb1NTnb1OTyU g60T+NBXrTFrbCdI9qNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nB2EE-00GAwx-0g; Fri, 21 Jan 2022 22:17:54 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nB2EA-00GAw8-TY for linux-arm-kernel@lists.infradead.org; Fri, 21 Jan 2022 22:17:52 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E9F616196F; Fri, 21 Jan 2022 22:17:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82FBBC340E1; Fri, 21 Jan 2022 22:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642803468; bh=ccD+lMyQ8So8ChcB4eTdVAeY5Os12SZbUYpwYMGaWWE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ov00QIPB6CXyNqJOD0CHup0U8RSbnp3YrlV5/ZVRmTeJMJiPBMfftejEp0yKKy1Xh +J46P47akPJf58n7pJ2EDBtzhDu7AabnL2DB5zPQYdDI08fmu9zszVGsI1yX6JnGxv 6JxXViPN1sLAuPJRiEKZnCLtOUcjmKehkZY2dqiLBCN1Khn8N+tbOEs3Yef9pLtNqv qKAv7ijO4PLq+bA659/ZnqOSWKcpLvoJoTfkFEqFotG/hY7/y/pbgUbpVjowJ1J8yA Myj04ssRyIwGlR+SOjae/Eb+7uAZhUpQhPPniGD0g1GEaS0RqLlT02WDAVP2gnfafR wJckrMeNOXfzQ== Date: Fri, 21 Jan 2022 15:17:43 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nick Desaulniers , llvm@lists.linux.dev Subject: Re: [PATCH 13/14] ARM: use .arch directives instead of assembler command line flags Message-ID: References: <20210928154143.2106903-1-arnd@kernel.org> <20210928154143.2106903-14-arnd@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210928154143.2106903-14-arnd@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220121_141751_043035_76E46AD9 X-CRM114-Status: GOOD ( 16.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Arnd, On Tue, Sep 28, 2021 at 05:41:42PM +0200, 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] > > Since most assembler is non-conditionally assembled with one sub arch > (modulo arch/arm/delay-loop.S which conditionally is assembled as armv4 > based on CONFIG_ARCH_RPC, and arch/arm/mach-at91/pm-suspend.S which is > conditionally assembled as armv7-a based on CONFIG_CPU_V7), prefer the > .arch assembler directive. > > Link: https://bugs.llvm.org/show_bug.cgi?id=48894 > Link: https://github.com/ClangBuiltLinux/linux/issues/1195 > Suggested-by: Arnd Bergmann > Signed-off-by: Nick Desaulniers > [arnd] add a few more instances found in compile testing > Signed-off-by: Arnd Bergmann Did anything ever come of this patch (or series)? I would like to add -Werror=unused-command-line-argument to CLANG_FLAGS so that invalid flags will not cause cascading cc-option failures but we cannot not do that until this is resolved. Cheers, Nathan _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel