From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: configure.in support for FreeBSD ia64/sparc64/powerpc Date: Tue, 30 Dec 2008 13:44:14 +0100 Message-ID: <18778.6046.195093.648725@a1ihome1.kph.uni-mainz.de> References: <200611032145.kA3Ljj6x078515@kobe.laptop> <87irhv28mx.fsf@stupidchicken.com> <20061106141015.GB3755@kobe.laptop> <18763.42713.941380.795066@a1ihome1.kph.uni-mainz.de> <200812191716.mBJHG0oC016436@mothra.ics.uci.edu> <18763.58258.187720.412172@a1ihome1.kph.uni-mainz.de> <18765.64802.798989.140892@a1ihome1.kph.uni-mainz.de> <18777.10265.165132.46162@a1ihome1.kph.uni-mainz.de> <200812291954.mBTJsKnJ027581@mothra.ics.uci.edu> <18777.12531.501647.9714@a1ihome1.kph.uni-mainz.de> <200812292039.mBTKdate027716@mothra.ics.uci.edu> <87tz8mu0a3.fsf@kobe.laptop> <200812292206.mBTM644Y028007@mothra.ics.uci.edu> <87r63qa9t5.fsf@kobe.laptop> <18777.22367.789436.254592@a1ihome1.kph.uni-mainz.de> <200812300347.mBU3l3GI028760@mothra.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230641077 19484 80.91.229.12 (30 Dec 2008 12:44:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Dec 2008 12:44:37 +0000 (UTC) Cc: Chong Yidong , Giorgos Keramidas , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 30 13:45: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 1LHdyg-0006lL-Rl for ged-emacs-devel@m.gmane.org; Tue, 30 Dec 2008 13:45:43 +0100 Original-Received: from localhost ([127.0.0.1]:51006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHdxT-0002kB-9X for ged-emacs-devel@m.gmane.org; Tue, 30 Dec 2008 07:44:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LHdxO-0002k5-6t for emacs-devel@gnu.org; Tue, 30 Dec 2008 07:44:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LHdxL-0002jt-HX for emacs-devel@gnu.org; Tue, 30 Dec 2008 07:44:20 -0500 Original-Received: from [199.232.76.173] (port=56468 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LHdxL-0002jq-9q for emacs-devel@gnu.org; Tue, 30 Dec 2008 07:44:19 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:52085) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LHdxK-0005yx-RM for emacs-devel@gnu.org; Tue, 30 Dec 2008 07:44:19 -0500 Original-Received: from a1ihome1.kph.uni-mainz.de (a1ihome1.kph.uni-mainz.de [134.93.134.75]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id mBUCiEWl000797; Tue, 30 Dec 2008 13:44:14 +0100 Original-Received: from a1ihome1.kph.uni-mainz.de (localhost [127.0.0.1]) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.1) with ESMTP id mBUCiEOc029263; Tue, 30 Dec 2008 13:44:14 +0100 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.0/Submit) id mBUCiE7k029258; Tue, 30 Dec 2008 13:44:14 +0100 In-Reply-To: <200812300347.mBU3l3GI028760@mothra.ics.uci.edu> X-Mailer: VM 8.0.2-487 under Emacs 22.2.1 (i686-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:107411 Archived-At: >>>>> On Mon, 29 Dec 2008, Dan Nicolaescu wrote: > Ulrich Mueller writes: >> >>>>> On Tue, 30 Dec 2008, Giorgos Keramidas wrote: >> > so making the code depend on __FreeBSD__ doesn't solve Ulrich's >> > original problem. >> >> It does, in fact. But testing for the OS still looks wrong to me, >> since it is a question of a machine instruction implemented for >> SPARC-V9, but not for earlier CPUs. > Or it's a question of FreeBSD not providing an implementation for > the "ta 3" trap? Probably _because_ it is available in hardware and therefore not needed? Or, look what other programs like GCC do (in sparc.md): ;; Special trap insn to flush register windows. (define_insn "flush_register_windows" [(unspec_volatile [(const_int 0)] UNSPECV_FLUSHW)] "" { return TARGET_V9 ? "flushw" : "ta\t3"; } [(set_attr "type" "flushw")]) No test for the OS here. Similar code can be found in the Boehm-GC or in libjava. But this discussion is moot. Could you please commit the patch with the test in the form "defined (__sparc64__) && defined (__FreeBSD__)" at least, so that FreeBSD and Gentoo can get rid of their local patch? Ulrich