* [gentoo-commits] gentoo-x86 commit in dev-lang/spidermonkey/files: spidermonkey-1.8.7-x32.patch
@ 2012-07-04 18:51 Jory Pratt (anarchy)
0 siblings, 0 replies; only message in thread
From: Jory Pratt (anarchy) @ 2012-07-04 18:51 UTC (permalink / raw
To: gentoo-commits
anarchy 12/07/04 18:51:57
Added: spidermonkey-1.8.7-x32.patch
Log:
Add x32 support, bug #421655
(Portage version: 2.1.11.4/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-lang/spidermonkey/files/spidermonkey-1.8.7-x32.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/files/spidermonkey-1.8.7-x32.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/spidermonkey/files/spidermonkey-1.8.7-x32.patch?rev=1.1&content-type=text/plain
Index: spidermonkey-1.8.7-x32.patch
===================================================================
--- a/js/src/jslock.cpp 2012-04-06 16:24:51.000000000 -0500
+++ b/js/src/jslock.cpp 2012-06-21 20:57:00.877937542 -0500
@@ -150,17 +150,22 @@
static JS_ALWAYS_INLINE int
NativeCompareAndSwap(volatile jsword *w, jsword ov, jsword nv)
{
unsigned int res;
__asm__ __volatile__ (
"lock\n"
+/* GCC's x32 abi support */
+#if defined(__LP64__)
"cmpxchgq %2, (%1)\n"
+#else
+ "cmpxchg %2, (%1)\n"
+#endif
"sete %%al\n"
"movzbl %%al, %%eax\n"
: "=a" (res)
: "r" (w), "r" (nv), "a" (ov)
: "cc", "memory");
return (int)res;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-04 18:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-04 18:51 [gentoo-commits] gentoo-x86 commit in dev-lang/spidermonkey/files: spidermonkey-1.8.7-x32.patch Jory Pratt (anarchy)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox