blob: 8a0696edfe1cf8feb36c67b76b0cfb14d9013ed6 [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
17diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc
18index 71325c387..303475232 100644
19--- a/src/google/protobuf/port_def.inc
20+++ b/src/google/protobuf/port_def.inc
21@@ -230,7 +230,7 @@
22 #error PROTOBUF_TAILCALL was previously defined
23 #endif
24 #if __has_cpp_attribute(clang::musttail) && \
25- !defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__)
26+ !defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__) && !defined(__mips__)
27 # ifndef PROTO2_OPENSOURCE
28 // Compilation fails on ARM32: b/195943306
29 // Compilation fails on powerpc64le: b/187985113
30--
312.33.1
32