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