blob: 8c70b2b6a69041c3bc2cf71b8f6e96c8599f5e1a [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 64d737318656286f69ddc5ad654072785ddcbbed Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Sep 2022 19:09:15 -0700
4Subject: [PATCH] protobuf: Disable musttail attribute on mips
5
6See https://github.com/llvm/llvm-project/issues/57795
7
8Upstream-Status: Pending
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
11---
12 third_party/protobuf/src/google/protobuf/port_def.inc | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15--- a/third_party/protobuf/src/google/protobuf/port_def.inc
16+++ b/third_party/protobuf/src/google/protobuf/port_def.inc
Andrew Geissler8f840682023-07-21 09:09:43 -050017@@ -338,6 +338,7 @@ static_assert(PROTOBUF_ABSL_MIN(20230125
Andrew Geissler87f5cff2022-09-30 13:13:31 -050018 #error PROTOBUF_TAILCALL was previously defined
19 #endif
Andrew Geissler8f840682023-07-21 09:09:43 -050020 #if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050021+ !defined(__mips__) && \
Andrew Geissler8f840682023-07-21 09:09:43 -050022 !defined(_ARCH_PPC) && !defined(__wasm__) && \
23 !(defined(_MSC_VER) && defined(_M_IX86)) && !defined(__i386__) && \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050024 !(defined(__NDK_MAJOR__) && __NDK_MAJOR <= 24)