openbsd-ports/www/firefox36/patches/patch-js_src_jslock_cpp
landry 17b63192b8 Resurrect www/firefox36 from the Attic, installing 3.6.16 in
${LOCALBASE}/firefox36 with firefox36 binary. Needed for archs
firefox 4 doesn't support (yet?). Yes, i'm looking at you sparc64.
Not yet linked to the build.
2011-03-26 10:58:36 +00:00

20 lines
738 B
Plaintext

$OpenBSD: patch-js_src_jslock_cpp,v 1.3 2011/03/26 10:58:36 landry Exp $
Fix for infinite loop in js binary during build
cf pkgsrc/devel/xulrunner/patches/patch-bb
http://lists.freebsd.org/pipermail/freebsd-gecko/2010-January/000640.html
https://bugzilla.mozilla.org/show_bug.cgi?id=550271
--- js/src/jslock.cpp.orig Sat Apr 24 16:47:57 2010
+++ js/src/jslock.cpp Sat Apr 24 16:52:44 2010
@@ -161,7 +161,11 @@ NativeCompareAndSwap(jsword *w, jsword ov, jsword nv)
__asm__ __volatile__ (
"stbar\n"
+#if defined (__sparc64__)
+ "casx [%1],%2,%3\n"
+#else
"cas [%1],%2,%3\n"
+#endif
"cmp %2,%3\n"
"be,a 1f\n"
"mov 1,%0\n"