From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: configure.in support for FreeBSD ia64/sparc64/powerpc Date: Fri, 19 Dec 2008 09:16:00 -0800 (PST) Message-ID: <200812191716.mBJHG0oC016436@mothra.ics.uci.edu> References: <200611032145.kA3Ljj6x078515@kobe.laptop> <87irhv28mx.fsf@stupidchicken.com> <20061106141015.GB3755@kobe.laptop> <18763.42713.941380.795066@a1ihome1.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229707121 29569 80.91.229.12 (19 Dec 2008 17:18:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 17:18:41 +0000 (UTC) Cc: Chong Yidong , Giorgos Keramidas , emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 19 18:19:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LDizG-0004NV-0S for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 18:18:06 +0100 Original-Received: from localhost ([127.0.0.1]:33380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDiy3-0000SP-Mr for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 12:16:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDixN-0008Mb-Ug for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:16:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDixM-0008La-OI for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:16:09 -0500 Original-Received: from [199.232.76.173] (port=57313 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDixM-0008LN-IA for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:16:08 -0500 Original-Received: from sallyv2.ics.uci.edu ([128.195.1.120]:59881) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LDixM-0000h2-3i for emacs-devel@gnu.org; Fri, 19 Dec 2008 12:16:08 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mBJHG0CJ001114; Fri, 19 Dec 2008 09:16:00 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBJHG0oC016436; Fri, 19 Dec 2008 09:16:00 -0800 (PST) In-Reply-To: <18763.42713.941380.795066@a1ihome1.kph.uni-mainz.de> (Ulrich Mueller's message of "Fri, 19 Dec 2008 14:51:21 +0100") Original-Lines: 70 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBJHG0CJ001114 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=0.671, required 5, autolearn=disabled, ALL_TRUSTED -1.44, FRT_PROFILE2 2.11) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107068 Archived-At: Ulrich Mueller writes: > >>>>> On Mon, 6 Nov 2006, Giorgos Keramidas wrote: > > >On 2006-11-03 22:28, Chong Yidong wrote: > >>Giorgos Keramidas writes: > >>> The following change makes Emacs buildable on FreeBSD running on > >>> sparc64, ia64 and powerpc too. It has been tested for some time > >>> as a local patch in the editors/emacs-devel port of FreeBSD, so it > >>> would be nice if it became part of Emacs 22. We won't have to > >>> maintain local diffs for this part then: > >>> > >>> --- a/src/alloc.c Fri Oct 27 15:45:51 2006 +0000 > >>> +++ b/src/alloc.c Sat Oct 28 01:49:45 2006 +0300 > >>> @@ -4560,7 +4560,11 @@ mark_stack () > >>> needed on ia64 too. See mach_dep.c, where it also says inline > >>> assembler doesn't work with relevant proprietary compilers. > >>> */ > >>> #ifdef sparc > >>> +#ifdef __sparc64__ > >>> + asm ("flushw"); > >>> +#else > >>> asm ("ta 3"); > >>> +#endif > >>> #endif > >> > >> Is this change correct for non-FreeBSD sparc64 systems too? > >> (I don't know anything about this part of the code.) > > > Sorry for taking so long to follow up about this. I tried looking > > at the sparc v9 specification for hints about why this change is > > needed on 64-bit SPARC platforms, but I couldn't come up with > > anything in a reasonable amount of time. I am not that proficient > > with SPARC64 assembly, but I will ask our FreeBSD/sparc64 people for > > details. > > > I'll follow up again when I get a reply from the people who know more > > about sparc64 assembly :) > > Following up to this message from two years ago. ;-) > > Gentoo also maintains the above as local patch, both for FreeBSD and > GNU/Linux. Our Sparc team says that the patch is sane, and without it > Emacs cannot be built on Sparc/FreeBSD. See Gentoo Bug 159584 for > further details: > > Below is a slightly updated patch that will apply to the currect CVS > trunk. It would be nice if it could make it into Emacs 23. > > Ulrich > > --- emacs-orig/src/alloc.c > +++ emacs/src/alloc.c > @@ -4573,7 +4573,11 @@ > needed on ia64 too. See mach_dep.c, where it also says inline > assembler doesn't work with relevant proprietary compilers. */ > #ifdef __sparc__ > +#ifdef __sparc64__ > + asm ("flushw"); > +#else Was this tested on GNU/Linux and Solaris (and all other sparc64 platforms)? Otherwise better make that #ifdef depend on FreeBSD. > asm ("ta 3"); > +#endif > #endif > > /* Save registers that we need to see on the stack. We need to see