aboutsummaryrefslogtreecommitdiff
path: root/editors/emacs21
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish@FreeBSD.org>2013-09-23 08:41:16 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2013-09-23 08:41:16 +0000
commite419fd8317b077cad02b5de838c0feed24843148 (patch)
tree5da8ac9bcfeab24bc88f260528eff38d5ab5ad83 /editors/emacs21
parent7687ddfa0eb323129bb7c7b3b7bf278a47f37201 (diff)
downloadports-e419fd8317b077cad02b5de838c0feed24843148.tar.gz
ports-e419fd8317b077cad02b5de838c0feed24843148.zip
Notes
Diffstat (limited to 'editors/emacs21')
-rw-r--r--editors/emacs21/files/patch-src:alloc.c35
-rw-r--r--editors/emacs21/files/patch-src:m:intel386.h11
2 files changed, 44 insertions, 2 deletions
diff --git a/editors/emacs21/files/patch-src:alloc.c b/editors/emacs21/files/patch-src:alloc.c
index 0ae9270b0d1f..ebb4a21c4850 100644
--- a/editors/emacs21/files/patch-src:alloc.c
+++ b/editors/emacs21/files/patch-src:alloc.c
@@ -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
diff --git a/editors/emacs21/files/patch-src:m:intel386.h b/editors/emacs21/files/patch-src:m:intel386.h
new file mode 100644
index 000000000000..8a2168e4c3f2
--- /dev/null
+++ b/editors/emacs21/files/patch-src:m:intel386.h
@@ -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. */