summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2008-12-17 09:54:10 +0000
committerUlrich Müller <ulm@gentoo.org>2008-12-17 09:54:10 +0000
commitf4f143d504bf162cf44d64275ee18aa93d9d45c5 (patch)
tree22d6fcc48c69baa5e997a84846dc014215d3b5fa /app-editors/emacs/files
parentupdated fast install patch to correctly add files to dist rules (diff)
downloadhistorical-f4f143d504bf162cf44d64275ee18aa93d9d45c5.tar.gz
historical-f4f143d504bf162cf44d64275ee18aa93d9d45c5.tar.bz2
historical-f4f143d504bf162cf44d64275ee18aa93d9d45c5.zip
New patch for sparc-fbsd, bug 159584.
Package-Manager: portage-2.2_rc17/cvs/Linux 2.6.27-gentoo-r4 i686
Diffstat (limited to 'app-editors/emacs/files')
-rw-r--r--app-editors/emacs/files/emacs-22.3-freebsd-sparc.patch18
1 files changed, 12 insertions, 6 deletions
diff --git a/app-editors/emacs/files/emacs-22.3-freebsd-sparc.patch b/app-editors/emacs/files/emacs-22.3-freebsd-sparc.patch
index 85ff3a088784..de206e7e0658 100644
--- a/app-editors/emacs/files/emacs-22.3-freebsd-sparc.patch
+++ b/app-editors/emacs/files/emacs-22.3-freebsd-sparc.patch
@@ -1,11 +1,17 @@
---- emacs-orig/src/alloc.c 2008-07-09 19:33:18.000000000 +0200
-+++ emacs/src/alloc.c 2008-07-09 19:39:48.000000000 +0200
-@@ -4487,7 +4487,7 @@
- /* Fixme: Code in the Boehm GC suggests flushing (with `flushrs') is
+http://bugs.gentoo.org/159584
+Patch taken from FreeBSD ports, by Giorgos Keramidas <keramida@freebsd.org>
+
+--- emacs-orig/src/alloc.c
++++ emacs/src/alloc.c
+@@ -4573,7 +4573,11 @@
needed on ia64 too. See mach_dep.c, where it also says inline
assembler doesn't work with relevant proprietary compilers. */
--#ifdef __sparc__
-+#if defined(__sparc__) && !defined(__FreeBSD__)
+ #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