summaryrefslogtreecommitdiff
path: root/waterfox/build-jit-atomic-always-lucky.patch
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-09-16 00:29:27 +0000
committerB Stack <bgstack15@gmail.com>2018-09-16 00:29:27 +0000
commit06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0 (patch)
tree1661bae9f608448fed9832ca8aaa91891a2a9daa /waterfox/build-jit-atomic-always-lucky.patch
parentMerge branch 'add-ublock' into 'master' (diff)
parentadd waterfox-ublock-origin and fix palemoon-ub (diff)
downloadstackrpms-06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0.tar.gz
stackrpms-06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0.tar.bz2
stackrpms-06c2a09edcb5cd71519fe13fb3047f2a2bdb47d0.zip
Merge branch 'add-waterfox' into 'master'
Add waterfox and its ublock-origin See merge request bgstack15/stackrpms!8
Diffstat (limited to 'waterfox/build-jit-atomic-always-lucky.patch')
-rw-r--r--waterfox/build-jit-atomic-always-lucky.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/waterfox/build-jit-atomic-always-lucky.patch b/waterfox/build-jit-atomic-always-lucky.patch
new file mode 100644
index 0000000..d6812b6
--- /dev/null
+++ b/waterfox/build-jit-atomic-always-lucky.patch
@@ -0,0 +1,30 @@
+diff -up firefox-55.0.2/js/src/jit/AtomicOperations.h.jit-atomic-lucky firefox-55.0.2/js/src/jit/AtomicOperations.h
+--- firefox-55.0.2/js/src/jit/AtomicOperations.h.jit-atomic-lucky 2017-07-31 18:20:47.000000000 +0200
++++ firefox-55.0.2/js/src/jit/AtomicOperations.h 2017-08-29 12:59:52.870926044 +0200
+@@ -348,7 +348,7 @@ AtomicOperations::isLockfree(int32_t siz
+ # elif defined(__sh__)
+ # include "jit/none/AtomicOperations-feeling-lucky.h"
+ # else
+-# include "jit/none/AtomicOperations-none.h" // These MOZ_CRASH() always
++# include "jit/none/AtomicOperations-feeling-lucky.h"
+ # endif
+ #elif defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64)
+ # include "jit/x86-shared/AtomicOperations-x86-shared.h"
+diff -up firefox-55.0.2/js/src/jit/none/AtomicOperations-feeling-lucky.h.jit-atomic-lucky firefox-55.0.2/js/src/jit/none/AtomicOperations-feeling-lucky.h
+--- firefox-55.0.2/js/src/jit/none/AtomicOperations-feeling-lucky.h.jit-atomic-lucky 2017-08-29 14:10:52.665031524 +0200
++++ firefox-55.0.2/js/src/jit/none/AtomicOperations-feeling-lucky.h 2017-08-29 14:09:40.756060235 +0200
+@@ -60,6 +60,14 @@
+ # define GNUC_COMPATIBLE
+ #endif
+
++#ifdef __s390__
++# define GNUC_COMPATIBLE
++#endif
++
++#ifdef __s390x__
++# define GNUC_COMPATIBLE
++#endif
++
+ // The default implementation tactic for gcc/clang is to use the newer
+ // __atomic intrinsics added for use in C++11 <atomic>. Where that
+ // isn't available, we use GCC's older __sync functions instead.
bgstack15