From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [IPv6:2001:470:683e::1]) by sourceware.org (Postfix) with ESMTPS id 1B1823858D33 for ; Fri, 3 Mar 2023 04:06:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1B1823858D33 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1677816368; bh=WC9IwKUkKdEGYbU2ITliv4Zogll+ewUyyfkto/0+vKs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=eFI6rsoF1dpCtNUxl99w1AGup4CMfFNCfBk7T3Ww87IUHGHBrmxmG0ujdsAbbEWsB 8M00Wjzx1Y1fIsQ+Qq25hPHaPZyEYfPMKAwdluJg0t//nLG+b1/tSp08WTR+C3KSyF M54yooHeaWtM0DcyUAcfJSTr/u9h0VowJ8akRxUY= Received: from [IPv6:240e:358:119e:ad00:dc73:854d:832e:5] (unknown [IPv6:240e:358:119e:ad00:dc73:854d:832e:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 6ECF865AB2; Thu, 2 Mar 2023 23:06:05 -0500 (EST) Message-ID: Subject: Re: [PATCH] LoongArch: Stop -mfpu from silently breaking ABI From: Xi Ruoyao To: Yujie Yang Cc: gcc-patches@gcc.gnu.org, WANG Xuerui , Lulu Cheng , Chenghua Xu Date: Fri, 03 Mar 2023 12:06:00 +0800 In-Reply-To: <20230303021231.fcvwqvivd6xa2xrn@loongson-pc> References: <20230302160122.47573-1-xry111@xry111.site> <20230303021231.fcvwqvivd6xa2xrn@loongson-pc> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Fri, 2023-03-03 at 10:12 +0800, Yujie Yang wrote: > However, "loongarch64" is defined to include the "fpu64" ISA module[1] > (i.e. enable "-mfpu=3D64" when -mfpu is not explicitly used). So I believ= e > the above behavior you observed is expected. Ah this make things much simpler and aligns with my gut feeling :). I can drop the change in loongarch-opts.cc now. And the smaller changeset also makes me more confident about a backport to gcc-12. V2 patch is being tested and I'll send it after the testing. Meanwhile I created PR109000 to track the issue. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University