From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: configure.in support for FreeBSD ia64/sparc64/powerpc Date: Mon, 6 Nov 2006 16:10:15 +0200 Message-ID: <20061106141015.GB3755@kobe.laptop> References: <200611032145.kA3Ljj6x078515@kobe.laptop> <87irhv28mx.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162822394 11854 80.91.229.2 (6 Nov 2006 14:13:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Nov 2006 14:13:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 06 15:13:12 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gh5Bw-0003CI-0D for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2006 15:11:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gh5Bv-0004Sl-5Y for ged-emacs-devel@m.gmane.org; Mon, 06 Nov 2006 09:11:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gh5Bh-0004Qo-RN for emacs-devel@gnu.org; Mon, 06 Nov 2006 09:10:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gh5Bc-0004KW-AO for emacs-devel@gnu.org; Mon, 06 Nov 2006 09:10:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gh5Bb-0004JN-Be for emacs-devel@gnu.org; Mon, 06 Nov 2006 09:10:51 -0500 Original-Received: from [62.1.205.36] (helo=igloo.linux.gr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Gh5Ba-0000c0-Ip for emacs-devel@gnu.org; Mon, 06 Nov 2006 09:10:51 -0500 Original-Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id kA6EATfY007201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 6 Nov 2006 16:10:37 +0200 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id kA6EAKst003952; Mon, 6 Nov 2006 16:10:20 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id kA6EAFXY003945; Mon, 6 Nov 2006 16:10:15 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-To: Chong Yidong Content-Disposition: inline In-Reply-To: <87irhv28mx.fsf@stupidchicken.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.528, required 5, AWL -0.13, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr 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:61862 Archived-At: 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 :) In the mean time, I can maintain this as a local FreeBSD patch, so it's not really something we should push hard for getting into the release.