From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by sourceware.org (Postfix) with ESMTP id 341153857374 for ; Wed, 27 Jul 2022 09:28:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 341153857374 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=loongson.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=loongson.cn Received: from [10.20.4.52] (unknown [10.20.4.52]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxX+NHBeFiJv47AA--.21009S2; Wed, 27 Jul 2022 17:28:39 +0800 (CST) Subject: Re: [PATCH] LoongArch: document -m[no-]explicit-relocs To: Xi Ruoyao , WANG Xuerui , gcc-patches@gcc.gnu.org Cc: xuchenghua@loongson.cn References: <767f8ddc835151d62ce825b8fe7b2ff7b4e3d2e6.camel@xry111.site> <889472f0-7b9a-9915-ddb3-acffc466119d@loongson.cn> <5865935a56759df13855f3a9f9aff6396e79191b.camel@xry111.site> From: Lulu Cheng Message-ID: <36e9d5fa-3742-7dbb-1dbe-78345b4a0709@loongson.cn> Date: Wed, 27 Jul 2022 17:28:39 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <5865935a56759df13855f3a9f9aff6396e79191b.camel@xry111.site> Content-Language: en-US X-CM-TRANSID: AQAAf9DxX+NHBeFiJv47AA--.21009S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Wr4kuFW7XF15AFWrWw4UJwb_yoWfZrXEgF n5K34jyr45Jan3KF42ka1jq3ySv34DuFyjg398W39xG34kXrZrGFnrCr97ZF4xAr4ktry5 A39IqF1xA34a9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbIxFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Gr0_Xr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21lYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2 jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvEwIxGrwACjI8F5VA0II 8E6IAqYI8I648v4I1l7480Y4vEI4kI2Ix0rVAqx4xJMxk0xIA0c2IEe2xFo4CEbIxvr21l c2xSY4AK6svPMxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I 8CrVAFwI0_JrI_JrWlx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUAVWU twCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x 0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Wr1j6rW3Jr1lIxAIcVC2z280aVAF wI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa 7VUb_gA7UUUUU== X-CM-SenderInfo: xfkh0wpoxo3qxorr0wxvrqhubq/ X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, HTML_MESSAGE, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:28:47 -0000 在 2022/7/27 下午5:15, Xi Ruoyao 写道: > On Wed, 2022-07-27 at 16:47 +0800, Lulu Cheng wrote: > >>>  "Use or do not use assembler relocation operators when dealing with >>> symbolic addresses. The alternative is to use assembler macros >>> instead, which may limit optimization. >>> >>>  The 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." >>> >> 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. > I have no opinion if wangxuerui agrees.