diff options
Diffstat (limited to 'meta-oe/recipes-support/webkitgtk/webkitgtk3/no-musttail-arm.patch')
-rw-r--r-- | meta-oe/recipes-support/webkitgtk/webkitgtk3/no-musttail-arm.patch | 24 |
1 files changed, 14 insertions, 10 deletions
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 |