blob: 80bf746e40c53e6921f6b80539da2f7bc228e9dd [file] [log] [blame]
From 0e0548e3f95e22a39db8d5b934afe0672a3f801b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
Date: Mon, 1 Nov 2021 08:13:29 +0100
Subject: [PATCH] Fix build on powerpc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Another fix for (this time JIT enabled)
| <...>/irefox-91.2.0/js/src/wasm/WasmFrame.cpp:57:76: error: static assertion failed: Aligned after pushing DebugFrame
| 57 | static_assert((offsetof(DebugFrame, frame_) + sizeof(Frame)) % Alignment == 0,
| | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
Upstream-Status: Pending
Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
---
js/src/wasm/WasmFrame.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/src/wasm/WasmFrame.h b/js/src/wasm/WasmFrame.h
index 893762e..2d90656 100644
--- a/js/src/wasm/WasmFrame.h
+++ b/js/src/wasm/WasmFrame.h
@@ -232,7 +232,7 @@ class DebugFrame {
#if defined(JS_CODEGEN_MIPS32) || defined(JS_CODEGEN_ARM) || \
(defined(JS_CODEGEN_NONE) && \
(defined(__riscv) && __riscv_xlen == 32) || defined(__mips__)) || \
- defined(JS_CODEGEN_X86) || defined(__wasi__)
+ defined(JS_CODEGEN_X86) || defined(__wasi__) || defined(__powerpc__)
// See alignmentStaticAsserts(). For MIPS32, ARM32 and X86 DebugFrame is only
// 4-byte aligned, so we add another word to get up to 8-byte
// alignment.
--
2.31.1