1*220dafdbSAndrew Geisslerclang/arm: Do not use MUST_TAIL_CALL
2*220dafdbSAndrew Geissler
3*220dafdbSAndrew GeisslerThis causes clang-17 to crash see [1]
4*220dafdbSAndrew Geisslerthis code is new in webkit 2.42[2] thats why we do not see the crash in older webkit
5*220dafdbSAndrew Geissler
6*220dafdbSAndrew Geissler[1] https://github.com/llvm/llvm-project/issues/67767
7*220dafdbSAndrew Geissler[2] https://github.com/WebKit/WebKit/commit/4d816460b765acd8aef90ab474615850b91ecc35
8*220dafdbSAndrew Geissler
9*220dafdbSAndrew GeisslerUpstream-Status: Pending
10*220dafdbSAndrew GeisslerSigned-off-by: Khem Raj <raj.khem@gmail.com>
11*220dafdbSAndrew Geissler--- a/Source/WTF/wtf/Compiler.h
12*220dafdbSAndrew Geissler+++ b/Source/WTF/wtf/Compiler.h
13*220dafdbSAndrew Geissler@@ -284,7 +284,7 @@
14*220dafdbSAndrew Geissler /* MUST_TAIL_CALL */
15*220dafdbSAndrew Geissler
16*220dafdbSAndrew Geissler #if !defined(MUST_TAIL_CALL) && defined(__cplusplus) && defined(__has_cpp_attribute)
17*220dafdbSAndrew Geissler-#if __has_cpp_attribute(clang::musttail)
18*220dafdbSAndrew Geissler+#if __has_cpp_attribute(clang::musttail) && !defined(__arm__)
19*220dafdbSAndrew Geissler #define MUST_TAIL_CALL [[clang::musttail]]
20*220dafdbSAndrew Geissler #endif
21*220dafdbSAndrew Geissler #endif
22