Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8383047rwp; Wed, 19 Jul 2023 09:03:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHPb3AfX/y413RsDjNGY78e+Vk2a7Bf7sZmHzLPwH71ECSTH4yBmTGI9thiCmXcFqPbMOxm X-Received: by 2002:a17:902:ab4a:b0:1bb:1a64:5a74 with SMTP id ij10-20020a170902ab4a00b001bb1a645a74mr4453158plb.33.1689782612970; Wed, 19 Jul 2023 09:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689782612; cv=none; d=google.com; s=arc-20160816; b=zmAdE/xs/iBjeUtzfxIYN5Q6jumIeJDD9x5WZaANdceL4OKFx6VJw6v66XQTXNtfGM rRBteoAXigtbucuapT2Z7YoHUdaTpbZVjLpM4K2K/bHiky524lDYpDo1Wec3pSkOxWow h52W2QF7vIsomq4Y8uh6WKMFsW3JqVQWtNRAwJxgzGP8Qk1FkVrVCyFNkYQTILX8Mspp Ghk3pmTza4m9utBdthrRz0BVd+1yNdHQQj6Xm1VpxtNKHdTJXLQT+/kWmQEs0p8Hvy/p 1K8n4OHk8YXk0uxuNM8f4xPlCdQe1L/uLRk3Rc5hkvvKeHGk7l37zSETsFqvXtpwo/7/ BRIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=1wQ9TCzhaNaGTdSwjDxdj6Y41PT20X08BfE7m4e4EZk=; fh=yAd6hH8Ajml1vhIFNPejGgtPoTxGygQY2I3uWALf+88=; b=U6zAQI0qJ5ehEiVKp4wnHeWhSCnEIVu9rJmCSvuqTQeFNg1vclP6hMgIS5exHmtZue +Lk72EGgBNRzV4kClNTk4G9prdKQuhMUkoMzrFhIqzrrbq9DtNBYioD9b5y7QKcSpign gI29iENZxadRS6atqjoOAgKCaHZaAR/hHzm3E0spPdX2cbJ1S38hWFbzKpWTQQgGf3J9 bBLCNxfnIw8h0bv7n/xPWKZQ1WmgyaQcn8TQOaEs0JrenwL9v5lP0Z9usaxH0DsOq25W A4ctqvnIynf2+FP8lFGdGHYZVg7+XAqifv/v38uyWmQlKsDr4v9PHb5A8fBqucu5X9wv MWAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a17090330d500b001b88ff83e45si3601501plc.571.2023.07.19.09.03.01; Wed, 19 Jul 2023 09:03:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231510AbjGSPjs (ORCPT + 99 others); Wed, 19 Jul 2023 11:39:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbjGSPjr (ORCPT ); Wed, 19 Jul 2023 11:39:47 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5D35C19B9; Wed, 19 Jul 2023 08:39:42 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 1441E92009C; Wed, 19 Jul 2023 17:39:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 0D43E92009B; Wed, 19 Jul 2023 16:39:40 +0100 (BST) Date: Wed, 19 Jul 2023 16:39:39 +0100 (BST) From: "Maciej W. Rozycki" To: Huacai Chen cc: Thomas Bogendoerfer , Jan-Benedict Glaw , Guillaume Tucker , Huacai Chen , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/3] MIPS: Fix build issues from the introduction of `need-compiler' In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Jul 2023, Huacai Chen wrote: > Even if patch-2 resolves the problem, I don't think patch-3 is > necessary because the original patch makes code simpler and more > compact. Please don't top-post on a public mailing list. If you're referring to this part: +ifdef CONFIG_CPU_LOONGSON64 +cflags-$(CONFIG_CPU_LOONGSON64) += -Wa,--trap +cflags-$(CONFIG_CC_IS_GCC) += -march=loongson3a +cflags-$(CONFIG_CC_IS_CLANG) += -march=mips64r2 +endif then it can be done with a separate clean-up. Otherwise it'll have been lost in the noise. Firstly: cflags-$(CONFIG_CPU_LOONGSON64) += -Wa,--trap doesn't have to be wrapped in `ifdef CONFIG_CPU_LOONGSON64'. Secondly: cflags-$(CONFIG_CC_IS_GCC) += -march=loongson3a cflags-$(CONFIG_CC_IS_CLANG) += -march=mips64r2 document compiler peculiarities. Does Clang support, or intend to, `-march=loongson3a'? If so, what version can we expect this stuff in? GCC has had it since 4.6 or Y2010, which is pretty long ago. Last but not least there are formatting anomalies there, which may have to be dealt with in a separate change. Maciej