summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/mozjs/mozjs-128/0001-add-arm-to-list-of-mozinline.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/mozjs/mozjs-128/0001-add-arm-to-list-of-mozinline.patch')
-rw-r--r--meta-oe/recipes-extended/mozjs/mozjs-128/0001-add-arm-to-list-of-mozinline.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128/0001-add-arm-to-list-of-mozinline.patch b/meta-oe/recipes-extended/mozjs/mozjs-128/0001-add-arm-to-list-of-mozinline.patch
new file mode 100644
index 0000000000..960b4593c2
--- /dev/null
+++ b/meta-oe/recipes-extended/mozjs/mozjs-128/0001-add-arm-to-list-of-mozinline.patch
@@ -0,0 +1,31 @@
1From 2d1fb35bd81acadc12cc077de86361ac59cee2f1 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Fri, 22 Sep 2023 22:59:59 +0000
4Subject: [PATCH] Backport patch from firefox bugzilla to fix compile error for
5 qemuarm with some armv7ve tunes such as 'armv7vethf' and 'armv7vet-vfpv3d16':
6
7| /path/to/build/tmp/work/armv7vet2hf-vfp-poky-linux-gnueabi/mozjs-102/102.5.0-r0/build/js/src/jit/AtomicOperationsGenerated.h:240:17:
8 error: 'asm' operand has impossible constraints
9| 240 | asm volatile (
10| | ^~~
11
12Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1761665]
13
14Signed-off-by: Kai Kang <kai.kang@windriver.com>
15---
16 js/src/jit/GenerateAtomicOperations.py | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/js/src/jit/GenerateAtomicOperations.py b/js/src/jit/GenerateAtomicOperations.py
20index 9194b8b685..145563bb37 100644
21--- a/js/src/jit/GenerateAtomicOperations.py
22+++ b/js/src/jit/GenerateAtomicOperations.py
23@@ -850,7 +850,7 @@ def generate_atomics_header(c_out):
24
25 # Work around a GCC issue on 32-bit x86 by adding MOZ_NEVER_INLINE.
26 # See bug 1756347.
27- if is_gcc and cpu_arch == "x86":
28+ if is_gcc and cpu_arch in ("x86", "arm"):
29 contents = contents.replace("INLINE_ATTR", "MOZ_NEVER_INLINE inline")
30 else:
31 contents = contents.replace("INLINE_ATTR", "inline")