diff options
Diffstat (limited to 'meta-oe/recipes-support/webkitgtk/webkitgtk3')
8 files changed, 117 insertions, 347 deletions
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch new file mode 100644 index 0000000000..40a7133052 --- /dev/null +++ b/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-errors-on-RISCV-https-bugs.webkit.org-show.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 984538dcce7b184269efc1e1b0fb78e1cb932b5d Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 21 Mar 2025 01:21:22 -0700 | ||
4 | Subject: [PATCH] Fix build errors on RISCV | ||
5 | https://bugs.webkit.org/show_bug.cgi?id=290163 | ||
6 | |||
7 | Reviewed by NOBODY (OOPS!). | ||
8 | |||
9 | Include c++ header <system_error> for std::error_code. | ||
10 | |||
11 | * Source/WebCore/contentextensions/ContentExtensionActions.h: Include system_error | ||
12 | |||
13 | Upstream-Status: Submitted [https://github.com/WebKit/WebKit/pull/42802] | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | Source/WebCore/contentextensions/ContentExtensionActions.h | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/Source/WebCore/contentextensions/ContentExtensionActions.h b/Source/WebCore/contentextensions/ContentExtensionActions.h | ||
20 | index 0b75d2e1df78..61cb33c94ce8 100644 | ||
21 | --- a/Source/WebCore/contentextensions/ContentExtensionActions.h | ||
22 | +++ b/Source/WebCore/contentextensions/ContentExtensionActions.h | ||
23 | @@ -28,6 +28,7 @@ | ||
24 | #if ENABLE(CONTENT_EXTENSIONS) | ||
25 | |||
26 | #include "ContentExtensionStringSerialization.h" | ||
27 | +#include <system_error> | ||
28 | #include <wtf/JSONValues.h> | ||
29 | #include <wtf/Hasher.h> | ||
30 | |||
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-issues-with-latest-Clang.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-issues-with-latest-Clang.patch deleted file mode 100644 index 6ef9835c2c..0000000000 --- a/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-Fix-build-issues-with-latest-Clang.patch +++ /dev/null | |||
@@ -1,237 +0,0 @@ | |||
1 | From 257ed304fb3e71d412568dcbed7129c145812fdf Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 2 Sep 2024 21:38:12 -0700 | ||
4 | Subject: [PATCH] Fix build issues with latest Clang | ||
5 | https://bugs.webkit.org/show_bug.cgi?id=276198 rdar://130933637 | ||
6 | |||
7 | Reviewed by Yusuke Suzuki. | ||
8 | |||
9 | The use of the template keyword to reference template members without a template argument list was deprecated in the C++ standard. | ||
10 | e.g. `foo.template bar()` nows needs to be `foo.template bar<>()`. I ran into a different issue with `std::reference_wrapper` that | ||
11 | blocked me from going any further, which AFAICT is a bug on the Clang side. | ||
12 | |||
13 | This also fixes a few other warnings that popped up while building with the new Clang denoted inline | ||
14 | |||
15 | * Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp: | ||
16 | (JSC::FTL::DFG::LowerDFGToB3::compileCompareStrictEq): Clang didn't like the implicit static_cast<int32_t>(UINT32_MAX) so make it explicit with a static_assert no data was lost. | ||
17 | * Source/JavaScriptCore/jit/AssemblyHelpers.cpp: | ||
18 | (JSC::AssemblyHelpers::emitNonNullDecodeZeroExtendedStructureID): Clang didn't like the implicit static_cast<int32_t>(UINT32_MAX) so make it explicit with a static_assert no data was lost. | ||
19 | * Source/JavaScriptCore/llint/InPlaceInterpreter.cpp: | ||
20 | * Source/JavaScriptCore/llint/LLIntData.h: | ||
21 | (JSC::LLInt::getCodeFunctionPtr): | ||
22 | (JSC::LLInt::getWide16CodeFunctionPtr): | ||
23 | (JSC::LLInt::getWide32CodeFunctionPtr): | ||
24 | * Source/JavaScriptCore/parser/Nodes.h: Missing definition of ModuleScopeData added include. | ||
25 | * Source/JavaScriptCore/runtime/JSCast.h: | ||
26 | (JSC::JSCastingHelpers::inherits): | ||
27 | (JSC::jsDynamicCast): | ||
28 | * Source/ThirdParty/libwebrtc/Source/third_party/boringssl/src/crypto/bio/connect.c: | ||
29 | (conn_callback_ctrl): Had a warning about an incompatible function type. Seems like this is intentional suppressed the warning. | ||
30 | * Source/WTF/wtf/cf/TypeCastsCF.h: Had a warning about extra namespace qualification. I just moved it out of the namespace. That said, it feels like this warning shouldn't apply to macro expansions... | ||
31 | * Source/WebCore/PAL/ThirdParty/libavif/ThirdParty/dav1d/src/decode.c: | ||
32 | (decode_b): Had a warning about different types on the middle/right of a ternary expression. I just pushed the comparison inside the ternary. | ||
33 | |||
34 | Canonical link: https://commits.webkit.org/280700@main | ||
35 | |||
36 | Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/62b6e2db547e#diff-136d848d7c1b400da9b486916b67592b54e5abf7c66ac247697a93ae2fb743a9] | ||
37 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
38 | --- | ||
39 | Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp | 6 ++++-- | ||
40 | Source/JavaScriptCore/jit/AssemblyHelpers.cpp | 6 ++++-- | ||
41 | .../JavaScriptCore/llint/InPlaceInterpreter.cpp | 16 ++++++++-------- | ||
42 | Source/JavaScriptCore/llint/LLIntData.h | 12 ++++++------ | ||
43 | Source/JavaScriptCore/llint/LLIntThunks.cpp | 2 +- | ||
44 | Source/JavaScriptCore/parser/Nodes.h | 4 ++-- | ||
45 | Source/JavaScriptCore/runtime/JSCast.h | 4 ++-- | ||
46 | 7 files changed, 27 insertions(+), 23 deletions(-) | ||
47 | |||
48 | --- a/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp | ||
49 | +++ b/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp | ||
50 | @@ -22930,8 +22930,10 @@ IGNORE_CLANG_WARNINGS_END | ||
51 | return m_out.shl(m_out.zeroExtPtr(structureID), m_out.constIntPtr(StructureID::encodeShiftAmount)); | ||
52 | #else | ||
53 | LValue maskedStructureID = structureID; | ||
54 | - if constexpr (structureHeapAddressSize < 4 * GB) | ||
55 | - maskedStructureID = m_out.bitAnd(structureID, m_out.constInt32(StructureID::structureIDMask)); | ||
56 | + if constexpr (structureHeapAddressSize < 4 * GB) { | ||
57 | + static_assert(static_cast<uint32_t>(StructureID::structureIDMask) == StructureID::structureIDMask); | ||
58 | + maskedStructureID = m_out.bitAnd(structureID, m_out.constInt32(static_cast<uint32_t>(StructureID::structureIDMask))); | ||
59 | + } | ||
60 | return m_out.bitOr(m_out.constIntPtr(startOfStructureHeap()), m_out.zeroExtPtr(maskedStructureID)); | ||
61 | #endif | ||
62 | } | ||
63 | --- a/Source/JavaScriptCore/jit/AssemblyHelpers.cpp | ||
64 | +++ b/Source/JavaScriptCore/jit/AssemblyHelpers.cpp | ||
65 | @@ -677,8 +677,10 @@ void AssemblyHelpers::emitNonNullDecodeZ | ||
66 | if constexpr (structureHeapAddressSize >= 4 * GB) { | ||
67 | ASSERT(structureHeapAddressSize == 4 * GB); | ||
68 | move(source, dest); | ||
69 | - } else | ||
70 | - and32(TrustedImm32(StructureID::structureIDMask), source, dest); | ||
71 | + } else { | ||
72 | + static_assert(static_cast<uint32_t>(StructureID::structureIDMask) == StructureID::structureIDMask); | ||
73 | + and32(TrustedImm32(static_cast<uint32_t>(StructureID::structureIDMask)), source, dest); | ||
74 | + } | ||
75 | or64(TrustedImm64(startOfStructureHeap()), dest); | ||
76 | #else // not CPU(ADDRESS64) | ||
77 | move(source, dest); | ||
78 | --- a/Source/JavaScriptCore/llint/InPlaceInterpreter.cpp | ||
79 | +++ b/Source/JavaScriptCore/llint/InPlaceInterpreter.cpp | ||
80 | @@ -43,8 +43,8 @@ namespace JSC { namespace IPInt { | ||
81 | do { \ | ||
82 | void* base = reinterpret_cast<void*>(ipint_unreachable_validate); \ | ||
83 | void* ptr = reinterpret_cast<void*>(ipint_ ## name ## _validate); \ | ||
84 | - void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr(); \ | ||
85 | - void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr(); \ | ||
86 | + void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr<>(); \ | ||
87 | + void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr<>(); \ | ||
88 | RELEASE_ASSERT_WITH_MESSAGE((char*)(untaggedPtr) - (char*)(untaggedBase) == opcode * 256, #name); \ | ||
89 | } while (false); | ||
90 | |||
91 | @@ -52,8 +52,8 @@ do { \ | ||
92 | do { \ | ||
93 | void* base = reinterpret_cast<void*>(ipint_i32_trunc_sat_f32_s_validate); \ | ||
94 | void* ptr = reinterpret_cast<void*>(ipint_ ## name ## _validate); \ | ||
95 | - void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr(); \ | ||
96 | - void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr(); \ | ||
97 | + void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr<>(); \ | ||
98 | + void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr<>(); \ | ||
99 | RELEASE_ASSERT_WITH_MESSAGE((char*)(untaggedPtr) - (char*)(untaggedBase) == opcode * 256, #name); \ | ||
100 | } while (false); | ||
101 | |||
102 | @@ -61,8 +61,8 @@ do { \ | ||
103 | do { \ | ||
104 | void* base = reinterpret_cast<void*>(ipint_simd_v128_load_mem_validate); \ | ||
105 | void* ptr = reinterpret_cast<void*>(ipint_ ## name ## _validate); \ | ||
106 | - void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr(); \ | ||
107 | - void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr(); \ | ||
108 | + void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr<>(); \ | ||
109 | + void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr<>(); \ | ||
110 | RELEASE_ASSERT_WITH_MESSAGE((char*)(untaggedPtr) - (char*)(untaggedBase) == opcode * 256, #name); \ | ||
111 | } while (false); | ||
112 | |||
113 | @@ -70,8 +70,8 @@ do { \ | ||
114 | do { \ | ||
115 | void* base = reinterpret_cast<void*>(ipint_memory_atomic_notify_validate); \ | ||
116 | void* ptr = reinterpret_cast<void*>(ipint_ ## name ## _validate); \ | ||
117 | - void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr(); \ | ||
118 | - void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr(); \ | ||
119 | + void* untaggedBase = CodePtr<CFunctionPtrTag>::fromTaggedPtr(base).template untaggedPtr<>(); \ | ||
120 | + void* untaggedPtr = CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr<>(); \ | ||
121 | RELEASE_ASSERT_WITH_MESSAGE((char*)(untaggedPtr) - (char*)(untaggedBase) == opcode * 256, #name); \ | ||
122 | } while (false); | ||
123 | |||
124 | --- a/Source/JavaScriptCore/llint/LLIntData.h | ||
125 | +++ b/Source/JavaScriptCore/llint/LLIntData.h | ||
126 | @@ -217,7 +217,7 @@ ALWAYS_INLINE LLIntCode getCodeFunctionP | ||
127 | #if COMPILER(MSVC) | ||
128 | return reinterpret_cast<LLIntCode>(getCodePtr<tag>(opcodeID).taggedPtr()); | ||
129 | #else | ||
130 | - return reinterpret_cast<LLIntCode>(getCodePtr<tag>(opcodeID).template taggedPtr()); | ||
131 | + return reinterpret_cast<LLIntCode>(getCodePtr<tag>(opcodeID).template taggedPtr<>()); | ||
132 | #endif | ||
133 | } | ||
134 | |||
135 | @@ -227,7 +227,7 @@ ALWAYS_INLINE LLIntCode getWide16CodeFun | ||
136 | #if COMPILER(MSVC) | ||
137 | return reinterpret_cast<LLIntCode>(getWide16CodePtr<tag>(opcodeID).taggedPtr()); | ||
138 | #else | ||
139 | - return reinterpret_cast<LLIntCode>(getWide16CodePtr<tag>(opcodeID).template taggedPtr()); | ||
140 | + return reinterpret_cast<LLIntCode>(getWide16CodePtr<tag>(opcodeID).template taggedPtr<>()); | ||
141 | #endif | ||
142 | } | ||
143 | |||
144 | @@ -237,7 +237,7 @@ ALWAYS_INLINE LLIntCode getWide32CodeFun | ||
145 | #if COMPILER(MSVC) | ||
146 | return reinterpret_cast<LLIntCode>(getWide32CodePtr<tag>(opcodeID).taggedPtr()); | ||
147 | #else | ||
148 | - return reinterpret_cast<LLIntCode>(getWide32CodePtr<tag>(opcodeID).template taggedPtr()); | ||
149 | + return reinterpret_cast<LLIntCode>(getWide32CodePtr<tag>(opcodeID).template taggedPtr<>()); | ||
150 | #endif | ||
151 | } | ||
152 | #else // not ENABLE(JIT) | ||
153 | @@ -361,7 +361,7 @@ ALWAYS_INLINE LLIntCode getCodeFunctionP | ||
154 | #if COMPILER(MSVC) | ||
155 | return reinterpret_cast<LLIntCode>(getCodePtr<tag>(opcodeID).taggedPtr()); | ||
156 | #else | ||
157 | - return reinterpret_cast<LLIntCode>(getCodePtr<tag>(opcodeID).template taggedPtr()); | ||
158 | + return reinterpret_cast<LLIntCode>(getCodePtr<tag>(opcodeID).template taggedPtr<>()); | ||
159 | #endif | ||
160 | } | ||
161 | |||
162 | @@ -371,7 +371,7 @@ ALWAYS_INLINE LLIntCode getWide16CodeFun | ||
163 | #if COMPILER(MSVC) | ||
164 | return reinterpret_cast<LLIntCode>(getWide16CodePtr<tag>(opcodeID).taggedPtr()); | ||
165 | #else | ||
166 | - return reinterpret_cast<LLIntCode>(getWide16CodePtr<tag>(opcodeID).template taggedPtr()); | ||
167 | + return reinterpret_cast<LLIntCode>(getWide16CodePtr<tag>(opcodeID).template taggedPtr<>()); | ||
168 | #endif | ||
169 | } | ||
170 | |||
171 | @@ -381,7 +381,7 @@ ALWAYS_INLINE LLIntCode getWide32CodeFun | ||
172 | #if COMPILER(MSVC) | ||
173 | return reinterpret_cast<LLIntCode>(getWide32CodePtr<tag>(opcodeID).taggedPtr()); | ||
174 | #else | ||
175 | - return reinterpret_cast<LLIntCode>(getWide32CodePtr<tag>(opcodeID).template taggedPtr()); | ||
176 | + return reinterpret_cast<LLIntCode>(getWide32CodePtr<tag>(opcodeID).template taggedPtr<>()); | ||
177 | #endif | ||
178 | } | ||
179 | #else // not ENABLE(JIT) | ||
180 | --- a/Source/JavaScriptCore/llint/LLIntThunks.cpp | ||
181 | +++ b/Source/JavaScriptCore/llint/LLIntThunks.cpp | ||
182 | @@ -227,7 +227,7 @@ ALWAYS_INLINE void* untaggedPtr(void* pt | ||
183 | #if COMPILER(MSVC) | ||
184 | return CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).untaggedPtr(); | ||
185 | #else | ||
186 | - return CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr(); | ||
187 | + return CodePtr<CFunctionPtrTag>::fromTaggedPtr(ptr).template untaggedPtr<>(); | ||
188 | #endif | ||
189 | } | ||
190 | |||
191 | --- a/Source/JavaScriptCore/parser/Nodes.h | ||
192 | +++ b/Source/JavaScriptCore/parser/Nodes.h | ||
193 | @@ -1,7 +1,7 @@ | ||
194 | /* | ||
195 | * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) | ||
196 | * Copyright (C) 2001 Peter Kelly (pmk@post.com) | ||
197 | - * Copyright (C) 2003-2019 Apple Inc. All rights reserved. | ||
198 | + * Copyright (C) 2003-2024 Apple Inc. All rights reserved. | ||
199 | * Copyright (C) 2007 Cameron Zwarich (cwzwarich@uwaterloo.ca) | ||
200 | * Copyright (C) 2007 Maks Orlovich | ||
201 | * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | ||
202 | @@ -29,6 +29,7 @@ | ||
203 | #include "ImplementationVisibility.h" | ||
204 | #include "JITCode.h" | ||
205 | #include "Label.h" | ||
206 | +#include "ModuleScopeData.h" | ||
207 | #include "ParserArena.h" | ||
208 | #include "ParserModes.h" | ||
209 | #include "ParserTokens.h" | ||
210 | @@ -49,7 +50,6 @@ namespace JSC { | ||
211 | class FunctionMetadataNode; | ||
212 | class FunctionParameters; | ||
213 | class ModuleAnalyzer; | ||
214 | - class ModuleScopeData; | ||
215 | class PropertyListNode; | ||
216 | class ReadModifyResolveNode; | ||
217 | class RegisterID; | ||
218 | --- a/Source/JavaScriptCore/runtime/JSCast.h | ||
219 | +++ b/Source/JavaScriptCore/runtime/JSCast.h | ||
220 | @@ -236,7 +236,7 @@ template<typename Target, typename From> | ||
221 | bool inherits(From* from) | ||
222 | { | ||
223 | using Dispatcher = InheritsTraits<Target>; | ||
224 | - return Dispatcher::template inherits(from); | ||
225 | + return Dispatcher::template inherits<>(from); | ||
226 | } | ||
227 | |||
228 | } // namespace JSCastingHelpers | ||
229 | @@ -245,7 +245,7 @@ template<typename To, typename From> | ||
230 | To jsDynamicCast(From* from) | ||
231 | { | ||
232 | using Dispatcher = JSCastingHelpers::InheritsTraits<typename std::remove_cv<typename std::remove_pointer<To>::type>::type>; | ||
233 | - if (LIKELY(Dispatcher::template inherits(from))) | ||
234 | + if (LIKELY(Dispatcher::template inherits<>(from))) | ||
235 | return static_cast<To>(from); | ||
236 | return nullptr; | ||
237 | } | ||
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-LowLevelInterpreter.cpp-339-21-error-t6-was-not-decl.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-LowLevelInterpreter.cpp-339-21-error-t6-was-not-decl.patch deleted file mode 100644 index e6a43c2fff..0000000000 --- a/meta-oe/recipes-support/webkitgtk/webkitgtk3/0001-LowLevelInterpreter.cpp-339-21-error-t6-was-not-decl.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From fb81a5de7798eb7f68e0de1c281671553e1aa19d Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Catanzaro <mcatanzaro@redhat.com> | ||
3 | Date: Mon, 5 Feb 2024 11:00:49 -0600 | ||
4 | Subject: [PATCH] =?UTF-8?q?LowLevelInterpreter.cpp:339:21:=20error:=20?= | ||
5 | =?UTF-8?q?=E2=80=98t6=E2=80=99=20was=20not=20declared=20in=20this=20scope?= | ||
6 | =?UTF-8?q?=20https://bugs.webkit.org/show=5Fbug.cgi=3Fid=3D268739?= | ||
7 | MIME-Version: 1.0 | ||
8 | Content-Type: text/plain; charset=UTF-8 | ||
9 | Content-Transfer-Encoding: 8bit | ||
10 | |||
11 | Unreviewed build fix. Seems a backport went badly, and we didn't notice | ||
12 | because the code is architecture-specific. | ||
13 | |||
14 | * Source/JavaScriptCore/llint/LowLevelInterpreter.cpp: | ||
15 | (JSC::CLoop::execute): | ||
16 | |||
17 | Upstream-Status: Backport [https://github.com/WebKit/WebKit/commit/3d5373575695b293b8559155431d0079a6153aff] | ||
18 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
19 | --- | ||
20 | Source/JavaScriptCore/llint/LowLevelInterpreter.cpp | 2 -- | ||
21 | 1 file changed, 2 deletions(-) | ||
22 | |||
23 | diff --git a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp | ||
24 | index 75cecbbd..b1020ea4 100644 | ||
25 | --- a/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp | ||
26 | +++ b/Source/JavaScriptCore/llint/LowLevelInterpreter.cpp | ||
27 | @@ -336,8 +336,6 @@ JSValue CLoop::execute(OpcodeID entryOpcodeID, void* executableAddress, VM* vm, | ||
28 | UNUSED_VARIABLE(t2); | ||
29 | UNUSED_VARIABLE(t3); | ||
30 | UNUSED_VARIABLE(t5); | ||
31 | - UNUSED_VARIABLE(t6); | ||
32 | - UNUSED_VARIABLE(t7); | ||
33 | |||
34 | struct StackPointerScope { | ||
35 | StackPointerScope(CLoopStack& stack) | ||
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch deleted file mode 100644 index b2e40a88c8..0000000000 --- a/meta-oe/recipes-support/webkitgtk/webkitgtk3/30e1d5e22213fdaca2a29ec3400c927d710a37a8.patch +++ /dev/null | |||
@@ -1,65 +0,0 @@ | |||
1 | From 1523e00a2a76e285262c8aa3721b5d99f3f2d612 Mon Sep 17 00:00:00 2001 | ||
2 | From: Thomas Devoogdt <thomas.devoogdt@barco.com> | ||
3 | Date: Mon, 16 Jan 2023 17:03:30 +0100 | ||
4 | Subject: [PATCH] REGRESSION(257865@main): B3Validate.cpp: fix | ||
5 | |||
6 | !ENABLE(WEBASSEMBLY_B3JIT) | ||
7 | |||
8 | https://bugs.webkit.org/show_bug.cgi?id=250681 | ||
9 | |||
10 | Reviewed by NOBODY (OOPS!). | ||
11 | |||
12 | WasmTypeDefinition.h isn't included if not ENABLE(WEBASSEMBLY_B3JIT). | ||
13 | Also, toB3Type and simdScalarType are not defined if it is included. | ||
14 | |||
15 | Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com> | ||
16 | |||
17 | Upstream-Status: Inappropriate [https://bugs.launchpad.net/ubuntu/+source/webkit2gtk/+bug/2008798] | ||
18 | --- | ||
19 | Source/JavaScriptCore/b3/B3Validate.cpp | 12 +++++++++--- | ||
20 | 1 file changed, 9 insertions(+), 3 deletions(-) | ||
21 | |||
22 | diff --git a/Source/JavaScriptCore/b3/B3Validate.cpp b/Source/JavaScriptCore/b3/B3Validate.cpp | ||
23 | index eaaa3749..1d089783 100644 | ||
24 | --- a/Source/JavaScriptCore/b3/B3Validate.cpp | ||
25 | +++ b/Source/JavaScriptCore/b3/B3Validate.cpp | ||
26 | @@ -47,6 +47,12 @@ | ||
27 | #include <wtf/StringPrintStream.h> | ||
28 | #include <wtf/text/CString.h> | ||
29 | |||
30 | +#if ENABLE(WEBASSEMBLY) && ENABLE(WEBASSEMBLY_B3JIT) | ||
31 | +#define simdScalarTypeToB3Type(type) toB3Type(Wasm::simdScalarType(type)) | ||
32 | +#else | ||
33 | +#define simdScalarTypeToB3Type(type) B3::Type() | ||
34 | +#endif | ||
35 | + | ||
36 | namespace JSC { namespace B3 { | ||
37 | |||
38 | namespace { | ||
39 | @@ -454,7 +460,7 @@ public: | ||
40 | case VectorExtractLane: | ||
41 | VALIDATE(!value->kind().hasExtraBits(), ("At ", *value)); | ||
42 | VALIDATE(value->numChildren() == 1, ("At ", *value)); | ||
43 | - VALIDATE(value->type() == toB3Type(Wasm::simdScalarType(value->asSIMDValue()->simdLane())), ("At ", *value)); | ||
44 | + VALIDATE(value->type() == simdScalarTypeToB3Type(value->asSIMDValue()->simdLane()), ("At ", *value)); | ||
45 | VALIDATE(value->child(0)->type() == V128, ("At ", *value)); | ||
46 | break; | ||
47 | case VectorReplaceLane: | ||
48 | @@ -462,7 +468,7 @@ public: | ||
49 | VALIDATE(value->numChildren() == 2, ("At ", *value)); | ||
50 | VALIDATE(value->type() == V128, ("At ", *value)); | ||
51 | VALIDATE(value->child(0)->type() == V128, ("At ", *value)); | ||
52 | - VALIDATE(value->child(1)->type() == toB3Type(Wasm::simdScalarType(value->asSIMDValue()->simdLane())), ("At ", *value)); | ||
53 | + VALIDATE(value->child(1)->type() == simdScalarTypeToB3Type(value->asSIMDValue()->simdLane()), ("At ", *value)); | ||
54 | break; | ||
55 | case VectorDupElement: | ||
56 | VALIDATE(!value->kind().hasExtraBits(), ("At ", *value)); | ||
57 | @@ -484,7 +490,7 @@ public: | ||
58 | VALIDATE(!value->kind().hasExtraBits(), ("At ", *value)); | ||
59 | VALIDATE(value->numChildren() == 1, ("At ", *value)); | ||
60 | VALIDATE(value->type() == V128, ("At ", *value)); | ||
61 | - VALIDATE(value->child(0)->type() == toB3Type(Wasm::simdScalarType(value->asSIMDValue()->simdLane())), ("At ", *value)); | ||
62 | + VALIDATE(value->child(0)->type() == simdScalarTypeToB3Type(value->asSIMDValue()->simdLane()), ("At ", *value)); | ||
63 | break; | ||
64 | |||
65 | case VectorPopcnt: | ||
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/fix-ftbfs-riscv64.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/fix-ftbfs-riscv64.patch new file mode 100644 index 0000000000..00347ef3e1 --- /dev/null +++ b/meta-oe/recipes-support/webkitgtk/webkitgtk3/fix-ftbfs-riscv64.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From: Alberto Garcia <berto@igalia.com> | ||
2 | Description: Use WTF_CPU_UNKNOWN when building for riscv64 | ||
3 | WebKitGTK doesn't build on riscv64 even with the JIT disabled. | ||
4 | Treating the CPU as unknown is perhaps a bit severe, but it allows us | ||
5 | to get the build done until someone steps up to maintain this | ||
6 | properly. | ||
7 | Bug: https://bugs.webkit.org/show_bug.cgi?id=271371 | ||
8 | Forwarded: no | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- a/Source/WTF/wtf/PlatformCPU.h | ||
13 | +++ b/Source/WTF/wtf/PlatformCPU.h | ||
14 | @@ -286,14 +286,6 @@ | ||
15 | |||
16 | #endif /* ARM */ | ||
17 | |||
18 | -/* CPU(RISCV64) - RISC-V 64-bit */ | ||
19 | -#if defined(__riscv) \ | ||
20 | - && defined(__riscv_xlen) \ | ||
21 | - && (__riscv_xlen == 64) | ||
22 | -#define WTF_CPU_RISCV64 1 | ||
23 | -#define WTF_CPU_KNOWN 1 | ||
24 | -#endif | ||
25 | - | ||
26 | #if !CPU(KNOWN) | ||
27 | #define WTF_CPU_UNKNOWN 1 | ||
28 | #endif | ||
29 | --- a/Source/cmake/WebKitCommon.cmake | ||
30 | +++ b/Source/cmake/WebKitCommon.cmake | ||
31 | @@ -125,8 +125,6 @@ if (NOT HAS_RUN_WEBKIT_COMMON) | ||
32 | set(WTF_CPU_PPC64 1) | ||
33 | elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le") | ||
34 | set(WTF_CPU_PPC64LE 1) | ||
35 | - elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^riscv64") | ||
36 | - set(WTF_CPU_RISCV64 1) | ||
37 | elseif (LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "^loongarch64") | ||
38 | set(WTF_CPU_LOONGARCH64 1) | ||
39 | else () | ||
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/fix-typo-denormaldisabler.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/fix-typo-denormaldisabler.patch new file mode 100644 index 0000000000..c3383fcd41 --- /dev/null +++ b/meta-oe/recipes-support/webkitgtk/webkitgtk3/fix-typo-denormaldisabler.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | From: Alberto Garcia <berto@igalia.com> | ||
2 | Subject: Fix build failure due to missing semicolon | ||
3 | |||
4 | Source: https://sources.debian.org/data/main/w/webkit2gtk/2.48.1-2/debian/patches/fix-typo-denormaldisabler.patch | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- a/Source/WebCore/platform/audio/DenormalDisabler.cpp | ||
9 | +++ b/Source/WebCore/platform/audio/DenormalDisabler.cpp | ||
10 | @@ -91,7 +91,7 @@ DenormalDisabler::~DenormalDisabler() | ||
11 | } | ||
12 | } | ||
13 | #else | ||
14 | -DenormalDisabler::DenormalDisabler() = default | ||
15 | +DenormalDisabler::DenormalDisabler() = default; | ||
16 | DenormalDisabler::~DenormalDisabler() = default; | ||
17 | #endif | ||
18 | |||
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/no-musttail-arm.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/no-musttail-arm.patch index 37bc6538c3..367e6b8342 100644 --- a/meta-oe/recipes-support/webkitgtk/webkitgtk3/no-musttail-arm.patch +++ b/meta-oe/recipes-support/webkitgtk/webkitgtk3/no-musttail-arm.patch | |||
@@ -1,6 +1,6 @@ | |||
1 | From c50f2277509f2e6f087cda2eaf323eaf569aad8d Mon Sep 17 00:00:00 2001 | 1 | From 4602261fa44d6bbb4c3698c79e08a6a40a6edc5a Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 30 Sep 2023 12:42:06 -0700 | 3 | Date: Fri, 12 Jan 2024 09:21:39 -0800 |
4 | Subject: [PATCH] clang/arm: Do not use MUST_TAIL_CALL | 4 | Subject: [PATCH] clang/arm: Do not use MUST_TAIL_CALL |
5 | 5 | ||
6 | This causes clang-17 to crash see [1] | 6 | This causes clang-17 to crash see [1] |
@@ -9,22 +9,26 @@ this code is new in webkit 2.42[2] thats why we do not see the crash in older we | |||
9 | [1] https://github.com/llvm/llvm-project/issues/67767 | 9 | [1] https://github.com/llvm/llvm-project/issues/67767 |
10 | [2] https://github.com/WebKit/WebKit/commit/4d816460b765acd8aef90ab474615850b91ecc35 | 10 | [2] https://github.com/WebKit/WebKit/commit/4d816460b765acd8aef90ab474615850b91ecc35 |
11 | 11 | ||
12 | Upstream-Status: Pending | 12 | Upstream-Status: Inappropriate [work around to avoid clang compiler crash] |
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
14 | |||
15 | Update context for webkitgtk 2.48.0. | ||
16 | |||
17 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | ||
14 | --- | 18 | --- |
15 | Source/WTF/wtf/Compiler.h | 2 +- | 19 | Source/WTF/wtf/Compiler.h | 2 +- |
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | 20 | 1 file changed, 1 insertion(+), 1 deletion(-) |
17 | 21 | ||
18 | diff --git a/Source/WTF/wtf/Compiler.h b/Source/WTF/wtf/Compiler.h | 22 | diff --git a/Source/WTF/wtf/Compiler.h b/Source/WTF/wtf/Compiler.h |
19 | index 449ca502..daac29d7 100644 | 23 | index 16e416d..68dd9a0 100644 |
20 | --- a/Source/WTF/wtf/Compiler.h | 24 | --- a/Source/WTF/wtf/Compiler.h |
21 | +++ b/Source/WTF/wtf/Compiler.h | 25 | +++ b/Source/WTF/wtf/Compiler.h |
22 | @@ -321,7 +321,7 @@ | 26 | @@ -293,7 +293,7 @@ |
23 | /* MUST_TAIL_CALL */ | 27 | #if COMPILER(CLANG) |
24 | 28 | #if __SIZEOF_POINTER__ == 8 | |
25 | #if !defined(MUST_TAIL_CALL) && defined(__cplusplus) && defined(__has_cpp_attribute) | 29 | #if !defined(MUST_TAIL_CALL) && defined(__cplusplus) && defined(__has_cpp_attribute) |
26 | -#if __has_cpp_attribute(clang::musttail) | 30 | -#if __has_cpp_attribute(clang::musttail) && !defined(__powerpc__) && !defined(_WIN32) |
27 | +#if __has_cpp_attribute(clang::musttail) && !defined(__arm__) | 31 | +#if __has_cpp_attribute(clang::musttail) && !defined(__powerpc__) && !defined(_WIN32) && !defined(__arm__) |
28 | #define MUST_TAIL_CALL [[clang::musttail]] | 32 | #define MUST_TAIL_CALL [[clang::musttail]] |
29 | #endif | 33 | #define HAVE_MUST_TAIL_CALL 1 |
30 | #endif | 34 | #endif |
diff --git a/meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch b/meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch new file mode 100644 index 0000000000..19d18dea88 --- /dev/null +++ b/meta-oe/recipes-support/webkitgtk/webkitgtk3/sys_futex.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Fix build on newer 32bit architectures with only 64bit time_t | ||
2 | |||
3 | Upstream-Status: Submitted [https://chromium-review.googlesource.com/c/angle/angle/+/6108397] | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | --- a/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp | ||
6 | +++ b/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp | ||
7 | @@ -17,6 +17,9 @@ | ||
8 | # include <linux/futex.h> | ||
9 | # include <sys/syscall.h> | ||
10 | # include <unistd.h> | ||
11 | +# if !defined(SYS_futex) && defined(SYS_futex_time64) | ||
12 | +# define SYS_futex SYS_futex_time64 | ||
13 | +# endif | ||
14 | # endif // defined(ANGLE_PLATFORM_LINUX) || defined(ANGLE_PLATFORM_ANDROID) | ||
15 | |||
16 | # if defined(ANGLE_PLATFORM_WINDOWS) | ||