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 E12E93858D32 for ; Tue, 26 Jul 2022 09:45:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E12E93858D32 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 24D0C667F1; Tue, 26 Jul 2022 05:44:54 -0400 (EDT) Message-ID: <25a7d2fcac8194083e58ed960eaf0f42dafc0559.camel@xry111.site> Subject: Re: [PATCH][wwwdocs] gcc-13: Add loongarch '-mexplicit-relocs' support From: Xi Ruoyao To: Lulu Cheng , gcc-patches@gcc.gnu.org Cc: xuchenghua@loongson.cn, Wang Xuerui Date: Tue, 26 Jul 2022 17:44:47 +0800 In-Reply-To: <20220726072119.2910839-1-chenglulu@loongson.cn> References: <20220726072119.2910839-1-chenglulu@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=-1.1 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: Tue, 26 Jul 2022 09:45:02 -0000 +Xuerui (his English is much better than mine). On Tue, 2022-07-26 at 15:21 +0800, Lulu Cheng wrote: > Hi, > =C2=A0 Recently we added split symbol support, changed in r13-1834. > =C2=A0 It is ok for wwwdocs? > +

LoongArch

> +
    > +=C2=A0
  • The option -mexplicit-relocs has been added, thi= s indicate I think "added and enabled by default" would be better. > +=C2=A0 whether the la.* macro instructions will be generate= d when > +=C2=A0 loading symbolic addresses. > +=C2=A0 This feature requires binutils version 2.40 or later. If you want= to use the > +=C2=A0 older version of bintuils, add compiler parameters > +=C2=A0 -mno-explicit-relocs at compile time. Does it mean we need to make sure GCC 13 released after binutils-2.40?=20 binutils-2.39 release branch is already created and it's now explicitly "no new feature" so a backport seems impossible... > +=C2=A0
  • > +=C2=A0
  • The method for calling global functions changed from > +=C2=A0 la.global + jirl to bl when complied ad= d > +=C2=A0 -fplt. "from la.global + jirl to bl with -fno-plt and -mexplicit-relocs"? With "-fplt" GCC 12 is already using bl, and with -mno-explicit-relocs la.global is still used (if I read func-call-3.c correctly). > +=C2=A0
  • Enable option -fsection-anchors when -O1 and > +=C2=A0 more advanced optimization. "-fsection-anchors is enabled by default at -O1 and higher optimization levels for better code generation". > +=C2=A0
  • Changed ASM_PREFERRED_EH_DATA_FORMAT macro defin= ition from > +=C2=A0 WD_EH_PE_absptr to WD_EH_PE_pcrel | DW_EH_PE_s= data4.=20 > +=C2=A0
  • I don't think this paragraph is necessary because this change is purely internal. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University