Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12783918rwd; Fri, 23 Jun 2023 10:35:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XAiTb5vzXSglXaYhkmGZVt4IOrOOIDVTYE80eBDCOd4nIWKqJkUu3bLe2AIx3WQ8rwBNz X-Received: by 2002:a05:6808:424d:b0:3a0:5b87:6ef7 with SMTP id dp13-20020a056808424d00b003a05b876ef7mr4944150oib.2.1687541712397; Fri, 23 Jun 2023 10:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687541712; cv=none; d=google.com; s=arc-20160816; b=yTZ4HcIq/UpXY/y4QcM5jkOaoEBaBdp5Lgzx+Rjxe/DmN7caTxYVwASVts6nMlfiV+ j7vgOrRenl0dR7U/tUnbD9918U/idp3SAb5ZS2xadfCGFYvPDyLnSkJpF9xeDV3gY+2C rk5RalIp4G7xLt6OTod0qcQvWHdHAdVUQEPRZP1oX1VS7b+kC7Kft0aVJ27lUvYgiT7H hbXWzUWp9/ol0MR3cBYdi5e/Z6wFdRIHKNVJ+VLrVH2e6xl0polfTElDg43bk8YqqLM1 jEEgAqVui9eJQWJUDKTuEJ76HSkEZHINkg2sAFWftifEPG3grvoguLifpizNwkv4mQoB n8Dg== 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 :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=oun5MMJoXFwYzHMrxz9wBE2B8tSSbiXDtGxVeVWBM6s=; b=TvV6M3J3ZBDygYRRVEs/BnXYaxbiIvyTk6EiVozZzgfaRzuV3sVZk3wOGPHSgFa5Fm s+726gIgssnNkF93PJPZ+o9e+7aa1bUFVQOCzd7PlVIHEpFkBZaRyU2EQsgq28Cm9FJJ UW9VokyI/3j6w5clxbasnp7DKFup2WCMo4Ua052zwFwnTD93qeb0aAP5z+07iew+F5js 9zzmv9khucjTUKKwQ7BRYUfOcXaXZL3UFVWsqYA62B6iYopFq9icqASkXJgs3OV4U5iX ents8CpjpvRF17TuQu4SUvm7DNbY1mi4W8IIywGnAdOYZREm/xmeaMHyrUgdNoZSozHZ KWzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=ELkuyH9E; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a18-20020a637052000000b005409058c8d7si8766997pgn.126.2023.06.23.10.34.59; Fri, 23 Jun 2023 10:35:12 -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; dkim=pass header.i=@xry111.site header.s=default header.b=ELkuyH9E; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231532AbjFWRAm (ORCPT + 99 others); Fri, 23 Jun 2023 13:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjFWRAl (ORCPT ); Fri, 23 Jun 2023 13:00:41 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76A1A91; Fri, 23 Jun 2023 10:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1687539640; bh=6rmpokyTm1820Gky7UqivAdAm5uBlKSdZ2K2AKHvsoo=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=ELkuyH9EaOux9JN8Rzhe8b55zb5ry82dafuzWG1B32tILizw1CfgU+XgRTyd9E2se 8cNf1bTtjKFLsmP95eo/lRh0PFXNteJP5340qiSs/23bQb26RdpANzxlCSyAHyfDA/ xDyn0+MD4p1QKDjDMRiGC6zUuZphCej3sc5vYjjo= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id CEA0E65DB9; Fri, 23 Jun 2023 13:00:38 -0400 (EDT) Message-ID: <22d794613f70b04544e39e8861737af09365ae8a.camel@xry111.site> Subject: Re: [PATCH 7/9] LoongArch: Tweak CFLAGS for Clang compatibility From: Xi Ruoyao To: WANG Xuerui , Huacai Chen Cc: WANG Rui , loongarch@lists.linux.dev, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-kernel@vger.kernel.org, WANG Xuerui Date: Sat, 24 Jun 2023 01:00:37 +0800 In-Reply-To: <20230623134351.1898379-8-kernel@xen0n.name> References: <20230623134351.1898379-1-kernel@xen0n.name> <20230623134351.1898379-8-kernel@xen0n.name> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Fri, 2023-06-23 at 21:43 +0800, WANG Xuerui wrote: > -cflags-y=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= +=3D -G0 -pipe -msoft-float -msoft-float should not be removed. Our consensus (made when I was developing https://gcc.gnu.org/r13-6500) is -mabi=3Dlp64s does *not* disable floating point instructions, but only disable FPRs for passing arguments and return values. So w/o -msoft-float (or -mfpu=3Dnone) GCC is allowed to generate FP instructions everywhere in kernel and it may cause kernel FPD exception in the future. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University