1*03514f19SPatrick WilliamsFrom c50f2277509f2e6f087cda2eaf323eaf569aad8d Mon Sep 17 00:00:00 2001
2*03514f19SPatrick WilliamsFrom: Khem Raj <raj.khem@gmail.com>
3*03514f19SPatrick WilliamsDate: Sat, 30 Sep 2023 12:42:06 -0700
4*03514f19SPatrick WilliamsSubject: [PATCH] clang/arm: Do not use MUST_TAIL_CALL
5220dafdbSAndrew Geissler
6220dafdbSAndrew GeisslerThis causes clang-17 to crash see [1]
7220dafdbSAndrew Geisslerthis code is new in webkit 2.42[2] thats why we do not see the crash in older webkit
8220dafdbSAndrew Geissler
9220dafdbSAndrew Geissler[1] https://github.com/llvm/llvm-project/issues/67767
10220dafdbSAndrew Geissler[2] https://github.com/WebKit/WebKit/commit/4d816460b765acd8aef90ab474615850b91ecc35
11220dafdbSAndrew Geissler
12220dafdbSAndrew GeisslerUpstream-Status: Pending
13220dafdbSAndrew GeisslerSigned-off-by: Khem Raj <raj.khem@gmail.com>
14*03514f19SPatrick Williams---
15*03514f19SPatrick Williams Source/WTF/wtf/Compiler.h | 2 +-
16*03514f19SPatrick Williams 1 file changed, 1 insertion(+), 1 deletion(-)
17*03514f19SPatrick Williams
18*03514f19SPatrick Williamsdiff --git a/Source/WTF/wtf/Compiler.h b/Source/WTF/wtf/Compiler.h
19*03514f19SPatrick Williamsindex 449ca502..daac29d7 100644
20220dafdbSAndrew Geissler--- a/Source/WTF/wtf/Compiler.h
21220dafdbSAndrew Geissler+++ b/Source/WTF/wtf/Compiler.h
22*03514f19SPatrick Williams@@ -321,7 +321,7 @@
23220dafdbSAndrew Geissler /* MUST_TAIL_CALL */
24220dafdbSAndrew Geissler
25220dafdbSAndrew Geissler #if !defined(MUST_TAIL_CALL) && defined(__cplusplus) && defined(__has_cpp_attribute)
26220dafdbSAndrew Geissler-#if __has_cpp_attribute(clang::musttail)
27220dafdbSAndrew Geissler+#if __has_cpp_attribute(clang::musttail) && !defined(__arm__)
28220dafdbSAndrew Geissler #define MUST_TAIL_CALL [[clang::musttail]]
29220dafdbSAndrew Geissler #endif
30220dafdbSAndrew Geissler #endif
31