From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id A13FF3857374 for ; Wed, 27 Jul 2022 09:15:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A13FF3857374 Received: from [IPv6:240e:358:1119:7700:dc73:854d:832e:3] (unknown [IPv6:240e:358:1119:7700:dc73:854d:832e:3]) (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 08BBA667CC; Wed, 27 Jul 2022 05:15:33 -0400 (EDT) Message-ID: <5865935a56759df13855f3a9f9aff6396e79191b.camel@xry111.site> Subject: Re: [PATCH] LoongArch: document -m[no-]explicit-relocs From: Xi Ruoyao To: Lulu Cheng , WANG Xuerui , gcc-patches@gcc.gnu.org Cc: xuchenghua@loongson.cn Date: Wed, 27 Jul 2022 17:15:23 +0800 In-Reply-To: <889472f0-7b9a-9915-ddb3-acffc466119d@loongson.cn> References: <767f8ddc835151d62ce825b8fe7b2ff7b4e3d2e6.camel@xry111.site> <889472f0-7b9a-9915-ddb3-acffc466119d@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 MIME-Version: 1.0 X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, LIKELY_SPAM_FROM, PDS_OTHER_BAD_TLD, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2022 09:15:39 -0000 On Wed, 2022-07-27 at 16:47 +0800, Lulu Cheng wrote: > > =C2=A0"Use or do not use assembler relocation operators when dealing wi= th > > symbolic addresses. The alternative is to use assembler macros > > instead, which may limit optimization.=20 > > =C2=A0 > > =C2=A0The default value for the option is determined during GCC build- > > time by detecting corresponding assembler support: @code{-mexplicit- > > relocs} if said support is present, @code{-mno-explicit-relocs} > > otherwise. This option is mostly useful for debugging, or > > interoperation with assemblers different from the build-time one."=20 > > =C2=A0 > I agree with wangxuerui's idea. > The same parameter and the same description information can reduce the > user's time to learn how to use this parameter. I agree it's better than my origin paragraph. If you agree I'll commit it with Xuerui as the commit author. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University