From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#2403: GCPROs and UNGCPRO should be no-ops also on SuperH Date: Sat, 4 Apr 2009 23:42:44 +0200 Message-ID: <18903.54356.394953.941976@a1ihome1.kph.uni-mainz.de> References: <18897.2913.295830.776399@a1ihome1.kph.uni-mainz.de> Reply-To: Ulrich Mueller , 2403@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----cutting-here-may-damage-your-screen-surface----67919801----" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238882759 16641 80.91.229.12 (4 Apr 2009 22:05:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2009 22:05:59 +0000 (UTC) Cc: 2403@emacsbugs.donarmstrong.com, sh@gentoo.org, emacs@gentoo.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 05 00:07:17 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LqE14-00013R-7N for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Apr 2009 00:07:06 +0200 Original-Received: from localhost ([127.0.0.1]:35408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqDzg-00060q-4R for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Apr 2009 18:05:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqDxz-0004ka-Pb for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 18:03:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqDxu-0004fY-VT for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 18:03:55 -0400 Original-Received: from [199.232.76.173] (port=41194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqDxu-0004fK-Pn for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 18:03:50 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58945) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LqDxu-0004Vk-5i for bug-gnu-emacs@gnu.org; Sat, 04 Apr 2009 18:03:50 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n34M3lKa020700; Sat, 4 Apr 2009 15:03:48 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n34Lo250016787; Sat, 4 Apr 2009 14:50:02 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Ulrich Mueller Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 04 Apr 2009 21:50:02 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2403 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2403-submit@emacsbugs.donarmstrong.com id=B2403.123888137515292 (code B ref 2403); Sat, 04 Apr 2009 21:50:02 +0000 Original-Received: (at 2403) by emacsbugs.donarmstrong.com; 4 Apr 2009 21:42:55 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from a1iwww1.kph.uni-mainz.de (a1iwww1.kph.uni-mainz.de [134.93.134.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n34Lgpxq015286 for <2403@emacsbugs.donarmstrong.com>; Sat, 4 Apr 2009 14:42:52 -0700 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 n34LgiMX027925; Sat, 4 Apr 2009 23:42:45 +0200 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 n34Lgiv7010456; Sat, 4 Apr 2009 23:42:44 +0200 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.0/Submit) id n34LgijO010450; Sat, 4 Apr 2009 23:42:44 +0200 In-Reply-To: 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, 3) Resent-Date: Sat, 04 Apr 2009 18:03:55 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26911 Archived-At: ------cutting-here-may-damage-your-screen-surface----67919801---- Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit >> Since almost all other arches do it, I wonder if this shouldn't be >> done for GNU/Linux on SuperH, too. That is, add "|| defined __sh__" >> to the large #if statement in src/s/gnu-linux.h . > Yes, it's probably a good idea, but we first need to check. > If you have access to such an arch, please try it out. Gentoo SuperH architecture team has tested it, and they find that Emacs builds and works with that definition added. Whereas without it, the build on SuperH fails with a bus error, as mentioned on this bug report before. So please commit attached patch. 2009-04-04 Ulrich Mueller * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH. ------cutting-here-may-damage-your-screen-surface----67919801---- Content-Type: text/plain; name="emacs-23.0.92-sh.patch" Content-Disposition: inline; filename="emacs-23.0.92-sh.patch" Content-Transfer-Encoding: 7bit --- emacs-orig/src/s/gnu-linux.h +++ emacs/src/s/gnu-linux.h @@ -258,7 +258,7 @@ #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ || defined __alpha__ || defined __mips__ || defined __s390__ \ || defined __arm__ || defined __powerpc__ || defined __amd64__ \ - || defined __ia64__ + || defined __ia64__ || defined __sh__ #define GC_SETJMP_WORKS 1 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS #ifdef __mc68000__ ------cutting-here-may-damage-your-screen-surface----67919801------