From owner-freebsd-mips@FreeBSD.ORG Tue Dec 27 23:56:10 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 D829E106566B; Tue, 27 Dec 2011 23:56:10 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 896908FC16; Tue, 27 Dec 2011 23:56:10 +0000 (UTC) Received: from orion.SpringDaemons.com (207.47.0.2.static.nextweb.net [207.47.0.2]) by mx0.deglitch.com (Postfix) with ESMTPA id 3DD348FC3A; Wed, 28 Dec 2011 03:56:09 +0400 (MSK) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 354C762F8; Tue, 27 Dec 2011 15:54:09 -0800 (PST) Date: Tue, 27 Dec 2011 15:54:09 -0800 From: Stanislav Sedov To: Ed Schouten Message-Id: <20111227155409.caccb69e.stas@FreeBSD.org> In-Reply-To: <20111227231243.GB1895@hoeg.nl> References: <20111227231243.GB1895@hoeg.nl> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: mips@FreeBSD.org, sparc64@FreeBSD.org Subject: Re: (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:56:10 -0000 On Wed, 28 Dec 2011 00:12:43 +0100 Ed Schouten mentioned: > 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. > Hi! It seems that the patch was stripped off. Thanks! -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments