1*220dafdbSAndrew GeisslerFrom c5cfb8aa591afd5ad3aedc58fe7f410e89013605 Mon Sep 17 00:00:00 2001
2*220dafdbSAndrew GeisslerFrom: Kai Kang <kai.kang@windriver.com>
3*220dafdbSAndrew GeisslerDate: Fri, 22 Sep 2023 22:59:59 +0000
4*220dafdbSAndrew GeisslerSubject: [PATCH] Backport patch from firefox bugzilla to fix compile error for
5*220dafdbSAndrew Geissler qemuarm with some armv7ve tunes such as 'armv7vethf' and 'armv7vet-vfpv3d16':
6*220dafdbSAndrew Geissler
7*220dafdbSAndrew Geissler| /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*220dafdbSAndrew Geissler  error: 'asm' operand has impossible constraints
9*220dafdbSAndrew Geissler|  240 |                 asm volatile (
10*220dafdbSAndrew Geissler|      |                 ^~~
11*220dafdbSAndrew Geissler
12*220dafdbSAndrew GeisslerUpstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1761665]
13*220dafdbSAndrew Geissler
14*220dafdbSAndrew GeisslerSigned-off-by: Kai Kang <kai.kang@windriver.com>
15*220dafdbSAndrew Geissler
16*220dafdbSAndrew Geissler---
17*220dafdbSAndrew Geissler js/src/jit/GenerateAtomicOperations.py | 2 +-
18*220dafdbSAndrew Geissler 1 file changed, 1 insertion(+), 1 deletion(-)
19*220dafdbSAndrew Geissler
20*220dafdbSAndrew Geisslerdiff --git a/js/src/jit/GenerateAtomicOperations.py b/js/src/jit/GenerateAtomicOperations.py
21*220dafdbSAndrew Geisslerindex 24b5a191cf..e41948c5af 100644
22*220dafdbSAndrew Geissler--- a/js/src/jit/GenerateAtomicOperations.py
23*220dafdbSAndrew Geissler+++ b/js/src/jit/GenerateAtomicOperations.py
24*220dafdbSAndrew Geissler@@ -860,7 +860,7 @@ def generate_atomics_header(c_out):
25*220dafdbSAndrew Geissler
26*220dafdbSAndrew Geissler         # Work around a GCC issue on 32-bit x86 by adding MOZ_NEVER_INLINE.
27*220dafdbSAndrew Geissler         # See bug 1756347.
28*220dafdbSAndrew Geissler-        if is_gcc and cpu_arch == "x86":
29*220dafdbSAndrew Geissler+        if is_gcc and cpu_arch in ("x86", "arm"):
30*220dafdbSAndrew Geissler             contents = contents.replace("INLINE_ATTR", "MOZ_NEVER_INLINE inline")
31*220dafdbSAndrew Geissler         else:
32*220dafdbSAndrew Geissler             contents = contents.replace("INLINE_ATTR", "inline")
33