1From 08e46feb6553af670754e65d94c3bb6fcd4e0cf9 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Sun, 31 Oct 2021 23:39:44 -0700 4Subject: [PATCH] Fix build on mips/clang 5 6clang13 crashes on mips, until its fixed upstream disable tailcall on 7mips 8 9https://bugs.llvm.org/show_bug.cgi?id=52367 10 11Upstream-Status: Inappropriate [Clang workaround] 12Signed-off-by: Khem Raj <raj.khem@gmail.com> 13--- 14 src/google/protobuf/port_def.inc | 2 +- 15 1 file changed, 1 insertion(+), 1 deletion(-) 16 17--- a/src/google/protobuf/port_def.inc 18+++ b/src/google/protobuf/port_def.inc 19@@ -255,6 +255,7 @@ 20 #error PROTOBUF_TAILCALL was previously defined 21 #endif 22 #if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \ 23+ !defined(__mips__) && \ 24 !defined(_ARCH_PPC) && !defined(__wasm__) && \ 25 !(defined(_MSC_VER) && defined(_M_IX86)) && \ 26 !(defined(__NDK_MAJOR__) && __NDK_MAJOR <= 24) 27