]> git.pld-linux.org Git - packages/mozjs78.git/blame - x32.patch
- updated to 78.14.0
[packages/mozjs78.git] / x32.patch
CommitLineData
d9e9a7d7
JB
1diff -ur mozjs-60.1.0/build/moz.configure/init.configure mozjs-60.1.0-x32/build/moz.configure/init.configure
2--- mozjs-60.1.0/build/moz.configure/init.configure 2018-06-19 00:23:55.000000000 +0200
3+++ mozjs-60.1.0-x32/build/moz.configure/init.configure 2019-03-31 10:40:40.743730317 +0200
4@@ -630,6 +630,8 @@
5 endianness = 'little'
6 elif cpu in ('x86_64', 'ia64'):
7 canonical_cpu = cpu
8+ if os.endswith('gnux32'):
9+ canonical_cpu = 'x32'
10 endianness = 'little'
11 elif cpu in ('s390', 's390x'):
12 canonical_cpu = cpu
13--- firefox-60.7.0/mfbt/RandomNum.cpp.orig 2019-05-24 22:04:38.196451155 +0200
14+++ firefox-60.7.0/mfbt/RandomNum.cpp 2019-05-24 22:10:43.717804289 +0200
15@@ -58,7 +58,9 @@
16
17 // Older glibc versions don't define SYS_getrandom, so we define it here if
18 // it's not available. See bug 995069.
19-# if defined(__x86_64__)
20+# if defined(__x86_64__) && defined(__ILP32__)
21+# define GETRANDOM_NR (__X32_SYSCALL_BIT + 318)
22+# elif defined(__x86_64__)
23 # define GETRANDOM_NR 318
24 # elif defined(__i386__)
25 # define GETRANDOM_NR 355
26diff -ur mozjs-60.1.0/python/mozbuild/mozbuild/configure/constants.py mozjs-60.1.0-x32/python/mozbuild/mozbuild/configure/constants.py
27--- mozjs-60.1.0/python/mozbuild/mozbuild/configure/constants.py 2018-06-19 00:24:03.000000000 +0200
28+++ mozjs-60.1.0-x32/python/mozbuild/mozbuild/configure/constants.py 2019-03-31 10:39:21.792681467 +0200
29@@ -57,6 +57,7 @@
30 'sparc64': 64,
31 'x86': 32,
32 'x86_64': 64,
33+ 'x32': 32,
34 }
35
36 CPU = EnumString.subclass(*CPU_bitness.keys())
8026df61 37@@ -73,8 +74,9 @@
d9e9a7d7
JB
38
39 # The order of those checks matter
40 CPU_preprocessor_checks = OrderedDict((
41+ ('x32', '__x86_64__ && __ILP32__'),
42 ('x86', '__i386__ || _M_IX86'),
5ad300fe 43- ('x86_64', '__x86_64__ || _M_X64'),
b03e790f 44+ ('x86_64', '(__x86_64__ && __LP64__) || _M_X64'),
d9e9a7d7 45 ('arm', '__arm__ || _M_ARM'),
8026df61
JP
46 ('aarch64', '__aarch64__ || _M_ARM64'),
47 ('ia64', '__ia64__'),
d9e9a7d7
JB
48--- firefox-68.7.0/js/src/vm/BigIntType.cpp~ 2020-04-03 21:29:59.000000000 +0200
49+++ firefox-68.7.0/js/src/vm/BigIntType.cpp 2020-05-01 11:22:53.296439915 +0200
50@@ -263,7 +263,7 @@
51 BigInt::Digit BigInt::digitDiv(Digit high, Digit low, Digit divisor,
52 Digit* remainder) {
53 MOZ_ASSERT(high < divisor, "division must not overflow");
54-#if defined(__x86_64__)
55+#if defined(__x86_64__) && !defined(__ILP32__)
56 Digit quotient;
57 Digit rem;
58 __asm__("divq %[divisor]"
5ad300fe
JB
59--- firefox-78.2.0/js/src/gc/GC.cpp.orig 2020-08-17 20:33:37.000000000 +0200
60+++ firefox-78.2.0/js/src/gc/GC.cpp 2020-10-07 21:30:17.245896073 +0200
61@@ -291,8 +291,10 @@
62 "CellFlagBitsReservedForGC should support LifoAlloc");
63 static_assert(CellAlignBytes >= MinFirstWordAlignment,
64 "CellFlagBitsReservedForGC should support gc::Cell");
65+#ifndef JS_CODEGEN_NONE
66 static_assert(js::jit::CodeAlignment >= MinFirstWordAlignment,
67 "CellFlagBitsReservedForGC should support JIT code");
68+#endif
69 static_assert(js::gc::JSClassAlignBytes >= MinFirstWordAlignment,
70 "CellFlagBitsReservedForGC should support JSClass pointers");
71
This page took 0.088685 seconds and 4 git commands to generate.