From owner-svn-ports-all@FreeBSD.ORG Mon Sep 23 08:41:17 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A2C34DD7; Mon, 23 Sep 2013 08:41:17 +0000 (UTC) (envelope-from ashish@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7611B28B0; Mon, 23 Sep 2013 08:41:17 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r8N8fHPP054330; Mon, 23 Sep 2013 08:41:17 GMT (envelope-from ashish@svn.freebsd.org) Received: (from ashish@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r8N8fH1X054325; Mon, 23 Sep 2013 08:41:17 GMT (envelope-from ashish@svn.freebsd.org) Message-Id: <201309230841.r8N8fH1X054325@svn.freebsd.org> From: Ashish SHUKLA Date: Mon, 23 Sep 2013 08:41:17 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r327951 - head/editors/emacs21/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Sep 2013 08:41:17 -0000 Author: ashish Date: Mon Sep 23 08:41:16 2013 New Revision: 327951 URL: http://svnweb.freebsd.org/changeset/ports/327951 Log: - Fix crash on 10-CURRENT Submitted by: dim Added: head/editors/emacs21/files/patch-src:m:intel386.h (contents, props changed) Modified: head/editors/emacs21/files/patch-src:alloc.c (contents, props changed) Modified: head/editors/emacs21/files/patch-src:alloc.c ============================================================================== --- head/editors/emacs21/files/patch-src:alloc.c Mon Sep 23 08:33:31 2013 (r327950) +++ head/editors/emacs21/files/patch-src:alloc.c Mon Sep 23 08:41:16 2013 (r327951) @@ -1,6 +1,36 @@ --- src/alloc.c.orig Thu Sep 12 13:50:01 2002 +++ src/alloc.c Thu Sep 12 13:48:11 2002 -@@ -3723,7 +3723,11 @@ +@@ -685,6 +685,9 @@ + #endif /* GC_MALLOC_CHECK */ + + __free_hook = old_free_hook; ++#ifdef __GNUC__ ++ __asm __volatile ("" : : : "memory"); ++#endif + free (ptr); + + /* If we released our reserve (due to running out of memory), +@@ -728,6 +731,9 @@ + + BLOCK_INPUT; + __malloc_hook = old_malloc_hook; ++#ifdef __GNUC__ ++ __asm __volatile ("" : : : "memory"); ++#endif + #ifdef DOUG_LEA_MALLOC + mallopt (M_TOP_PAD, malloc_hysteresis * 4096); + #else +@@ -776,6 +782,9 @@ + + BLOCK_INPUT; + __realloc_hook = old_realloc_hook; ++#ifdef __GNUC__ ++ __asm __volatile ("" : : : "memory"); ++#endif + + #ifdef GC_MALLOC_CHECK + if (ptr) +@@ -3723,8 +3732,12 @@ /* This trick flushes the register windows so that all the state of the process is contained in the stack. */ #ifdef sparc @@ -8,7 +38,8 @@ + asm ("flushw"); +#else asm ("ta 3"); -+#endif #endif ++#endif /* Save registers that we need to see on the stack. We need to see + registers used to hold register variables and registers used to Added: head/editors/emacs21/files/patch-src:m:intel386.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/emacs21/files/patch-src:m:intel386.h Mon Sep 23 08:41:16 2013 (r327951) @@ -0,0 +1,11 @@ +--- src/m/intel386.h.orig 1997-08-30 09:18:39.000000000 +0200 ++++ src/m/intel386.h 2013-09-14 16:52:48.000000000 +0200 +@@ -57,7 +57,7 @@ + /* Define NO_ARG_ARRAY if you cannot take the address of the first of a + * group of arguments and treat it as an array of the arguments. */ + +-/* #define NO_ARG_ARRAY */ ++#define NO_ARG_ARRAY + + /* Define WORD_MACHINE if addresses and such have + * to be corrected before they can be used as byte counts. */