33 lines
1.4 KiB
Diff
33 lines
1.4 KiB
Diff
|
From 194361a4dacb9540c0f4660c58a54f3c6bd91067 Mon Sep 17 00:00:00 2001
|
||
|
From: Kai Kang <kai.kang@windriver.com>
|
||
|
Date: Mon, 18 Sep 2023 19:32:57 +0000
|
||
|
Subject: [PATCH] Backport patch from firefox bugzilla to fix compile error for
|
||
|
qemuarm with some armv7ve tunes such as 'armv7vethf' and 'armv7vet-vfpv3d16':
|
||
|
|
||
|
| /path/to/build/tmp/work/armv7vet2hf-vfp-poky-linux-gnueabi/mozjs-102/102.5.0-r0/build/js/src/jit/AtomicOperationsGenerated.h:240:17:
|
||
|
error: 'asm' operand has impossible constraints
|
||
|
| 240 | asm volatile (
|
||
|
| | ^~~
|
||
|
|
||
|
Upstream-Status: Submitted [https://bugzilla.mozilla.org/show_bug.cgi?id=1761665]
|
||
|
|
||
|
Signed-off-by: Kai Kang <kai.kang@windriver.com>
|
||
|
|
||
|
---
|
||
|
js/src/jit/GenerateAtomicOperations.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/js/src/jit/GenerateAtomicOperations.py b/js/src/jit/GenerateAtomicOperations.py
|
||
|
index 24b5a191cf..e41948c5af 100644
|
||
|
--- a/js/src/jit/GenerateAtomicOperations.py
|
||
|
+++ b/js/src/jit/GenerateAtomicOperations.py
|
||
|
@@ -860,7 +860,7 @@ def generate_atomics_header(c_out):
|
||
|
|
||
|
# Work around a GCC issue on 32-bit x86 by adding MOZ_NEVER_INLINE.
|
||
|
# See bug 1756347.
|
||
|
- if is_gcc and cpu_arch == "x86":
|
||
|
+ if is_gcc and cpu_arch in ("x86", "arm"):
|
||
|
contents = contents.replace("INLINE_ATTR", "MOZ_NEVER_INLINE inline")
|
||
|
else:
|
||
|
contents = contents.replace("INLINE_ATTR", "inline")
|