components/desktop/mozjs-24/patches/05-ion_AsmJS_x86.patch
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Fri, 01 Jul 2016 13:03:40 +0000
changeset 6336 6ba7729e5c3a
permissions -rw-r--r--
23245656 Deliver mozjs-24 24.2.0 in Solaris PSARC/2016/413 GNOME 3 Web Bundle

Add missing define on Solaris.

XXX file upstream bug

--- mozjs-24.2.0/js/src/jit/AsmJSSignalHandlers.cpp	2013-10-29 13:40:19.000000000 -0700
+++ mozjs-24.2.0.new/js/src/jit/AsmJSSignalHandlers.cpp	2015-06-27 18:27:41.867039386 -0700
@@ -60,6 +60,7 @@
 # if defined(__linux__)
 #  define XMM_sig(p,i) ((p)->uc_mcontext.fpregs->_xmm[i])
 # else
+#  define REG_EIP EIP
 #  define XMM_sig(p,i) ((p)->uc_mcontext.fpregs.fp_reg_set.fpchip_state.xmm[i])
 # endif
 # define EIP_sig(p) ((p)->uc_mcontext.gregs[REG_EIP])