blob: 9f6116c4c4a4d15493ad5d7601a4af235a54bf22 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 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
Andrew Geissler595f6302022-01-24 19:11:47 +000017--- a/src/google/protobuf/port_def.inc
18+++ b/src/google/protobuf/port_def.inc
Patrick Williams92b42cb2022-09-03 06:53:57 -050019@@ -255,6 +255,7 @@
Andrew Geissler595f6302022-01-24 19:11:47 +000020 #error PROTOBUF_TAILCALL was previously defined
21 #endif
Patrick Williams92b42cb2022-09-03 06:53:57 -050022 #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)