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: configure.in support for FreeBSD ia64/sparc64/powerpc Date: Fri, 3 Nov 2006 23:45:45 +0200 (EET) Message-ID: <200611032145.kA3Ljj6x078515@kobe.laptop> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1162590419 14719 80.91.229.2 (3 Nov 2006 21:46:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 3 Nov 2006 21:46:59 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 03 22:46:58 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 1Gg6rn-0002e4-Nb for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2006 22:46:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gg6rn-0006gt-Al for ged-emacs-devel@m.gmane.org; Fri, 03 Nov 2006 16:46:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gg6rY-0006gh-Ln for emacs-devel@gnu.org; Fri, 03 Nov 2006 16:46:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gg6rX-0006g9-9i for emacs-devel@gnu.org; Fri, 03 Nov 2006 16:46:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gg6rX-0006g3-3L for emacs-devel@gnu.org; Fri, 03 Nov 2006 16:46:07 -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 1Gg6rW-0004yt-SD for emacs-devel@gnu.org; Fri, 03 Nov 2006 16:46:07 -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 kA3LjrXL028042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 3 Nov 2006 23:45:54 +0200 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id kA3LjjBX078518 for ; Fri, 3 Nov 2006 23:45:46 +0200 (EET) (envelope-from keramida@kobe.laptop) Original-Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id kA3Ljj6x078515; Fri, 3 Nov 2006 23:45:45 +0200 (EET) (envelope-from keramida) Original-To: emacs-devel@gnu.org X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.034, required 5, AWL -1.64, BAYES_00 -2.60, NO_DNS_FOR_FROM 3.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:61722 Archived-At: 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: %%% diff -r e9c18eba38ea -r 355e6a7d786b configure.in --- a/configure.in Fri Oct 27 15:45:51 2006 +0000 +++ b/configure.in Sat Oct 28 01:49:45 2006 +0300 @@ -237,6 +237,9 @@ case "${canonical}" in opsys=freebsd case "${canonical}" in alpha*-*-freebsd*) machine=alpha ;; + ia64-*-freebsd*) machine=ia64 ;; + sparc64-*-freebsd*) machine=sparc ;; + powerpc-*-freebsd*) machine=macppc ;; i[3456]86-*-freebsd*) machine=intel386 ;; amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; esac diff -r e9c18eba38ea -r 355e6a7d786b src/alloc.c --- 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 /* Save registers that we need to see on the stack. We need to see %%%