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 7444E3841469 for ; Mon, 25 Jul 2022 07:07:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7444E3841469 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 65569667CC; Mon, 25 Jul 2022 03:07:00 -0400 (EDT) Message-ID: <5058f9defb73232a983845d22c52c32d4151d69d.camel@xry111.site> Subject: PING: [PATCH] libsanitizer: don't enable for MIPS Linux without GNU libc [PR 106136] From: Xi Ruoyao To: gcc-patches@gcc.gnu.org Cc: Richard Sandiford , Yunqiang Su , Dimitrije Milosevic Date: Mon, 25 Jul 2022 15:06:58 +0800 In-Reply-To: References: 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=-5.8 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FROM_SUSPICIOUS_NTLD, GIT_PATCH_0, LIKELY_SPAM_FROM, PDS_OTHER_BAD_TLD, 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 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: Mon, 25 Jul 2022 07:07:04 -0000 Gentle ping :). On Thu, 2022-06-30 at 12:22 +0800, Xi Ruoyao wrote: > In libsanitizer code, the size of some GNU libc data structure > (notably, > struct stat) is hard coded.=C2=A0 These sizes may trigger a static assert > buidling against another libc. >=20 > Just make non-GNU libc targets UNSUPPORTED now.=C2=A0 If someone really > cares > about those alternative libc implementations, please submit patch to > LLVM project adding the support. >=20 > libsanitizer/ChangeLog >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0PR sanitizer/106136 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0* configure.tgt: Change m= ips*-*-linux* to mips*-*-linux-gnu* > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0because it fails to build= with non-GNU libc. > --- > =C2=A0libsanitizer/configure.tgt | 2 +- > =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt > index fb89df4935c..54b74b60e2f 100644 > --- a/libsanitizer/configure.tgt > +++ b/libsanitizer/configure.tgt > @@ -54,7 +54,7 @@ case "${target}" in > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0;; > =C2=A0=C2=A0 arm*-*-linux*) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0;; > -=C2=A0 mips*-*-linux*) > +=C2=A0 mips*-*-linux-gnu*) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0;; > =C2=A0=C2=A0 aarch64*-*-linux*) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0if test x$ac_cv_sizeof_vo= id_p =3D x8; then --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University