From owner-freebsd-mips@FreeBSD.ORG Tue Dec 27 23:12:47 2011 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50CBD1065672; Tue, 27 Dec 2011 23:12:47 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id B21FA8FC15; Tue, 27 Dec 2011 23:12:43 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 24C972A28CC9; Wed, 28 Dec 2011 00:12:43 +0100 (CET) Date: Wed, 28 Dec 2011 00:12:43 +0100 From: Ed Schouten To: mips@FreeBSD.org, sparc64@FreeBSD.org Message-ID: <20111227231243.GB1895@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lCAWRPmW1mITcIfM" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: (Finally) migrate MIPS and SPARC64 to libcompiler_rt X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2011 23:12:47 -0000 --lCAWRPmW1mITcIfM Content-Type: multipart/mixed; boundary="tjCHc7DPkfUGtrlw" Content-Disposition: inline --tjCHc7DPkfUGtrlw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, Quite some time ago, we switched from libgcc to libcompiler_rt on all architectures except MIPS and SPARC64. At the time I was also quite busy with other FreeBSD and LLVM related things, so I decided to leave MIPS and SPARC64 the way they were. The reason why we haven't switched these two architectures yet, is due to a minor bug in __ctzdi2() calling __builtin_ctz(). On these two architectures, this ends up calling __ctzdi2() again, causing a hang. I have filed a bug for this at the LLVM folks, but until that time I want to ask if there are people that are willing to test the attached patch on their MIPS and SPARC64 systems. The only thing you need to do: rebuild world two iterations to see whether everything works properly. I do advise you to test this patch in a jail first. If this patch fixes the problem, I will commit the change to SVN. As of then, every architecture will use libcompiler_rt. This also makes work on MIPS properly. Thanks, --=20 Ed Schouten WWW: http://80386.nl/ --tjCHc7DPkfUGtrlw-- --lCAWRPmW1mITcIfM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJO+lDrAAoJEG5e2P40kaK72LgQAKsyLAEeDaC/EwLnAkVKD3rw 4oKpcRJtuEPEQwZNHZtnF3EZFKQXcE9nSl0KbMdMrbA/g4DhVkU6XyCG7Lipwzzp IcAmgm/gLPdBhuYzq2Rdo+SRfPmO3gqMau91HeGkpegrCPy4g/vjc6GW3hHrTJO0 nJmoGRUOvWjUDifkuvU9fxbALzfNu8rZ8j1xXeR2EB+3XMCJ0AyAO1wumLo+nn6j 8oLVyiwfZzUVSvoHeZqy7ioi9GVXW0Mnu9v6nkU9cvKolew3v6d4moFX9qRC3H+h +epMAZM00z7QgODApIswoNtX9ZxU7+w7AkGq1vMNCMsI07dt+acObCEc7d4PoLFz EVRdUC+oZNLllqjLOKiKr2Eki4thb0Tf8IMufboZ0tY9fLUpKxzc0wEoJ4PSFnj6 XyawiqAXcibtE9vg5bZ/l3JuT/PFPphwKU6UKA+55ZdAGxtBFC0ao6nw2+Ck+kUJ IYLJukvu0Yi7zWHkO8386t1lTrybpA9bTg2Y4XPAXGKhb6L9MUZ3x5GrjnsAhMP3 3bGTDO4x133axwD6E5qykpD53qr3tjOkGNLY8ig6n6X/lzi0r2dgV0lh6Wz8UZ4M WjHZFKnwfTLy4R97+yhJc02D3jKwnBSqNXyuijz7sWWrsnvY/Ar92iNxlIa/RfpI kAufMnLjzuZSlEGo7JfC =MBOq -----END PGP SIGNATURE----- --lCAWRPmW1mITcIfM--