Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 1 | From 64d737318656286f69ddc5ad654072785ddcbbed Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 16 Sep 2022 19:09:15 -0700 |
| 4 | Subject: [PATCH] protobuf: Disable musttail attribute on mips |
| 5 | |
| 6 | See https://github.com/llvm/llvm-project/issues/57795 |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | Signed-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 Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 17 | @@ -338,6 +338,7 @@ static_assert(PROTOBUF_ABSL_MIN(20230125 |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 18 | #error PROTOBUF_TAILCALL was previously defined |
| 19 | #endif |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 20 | #if __has_cpp_attribute(clang::musttail) && !defined(__arm__) && \ |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 21 | + !defined(__mips__) && \ |
Andrew Geissler | 8f84068 | 2023-07-21 09:09:43 -0500 | [diff] [blame] | 22 | !defined(_ARCH_PPC) && !defined(__wasm__) && \ |
| 23 | !(defined(_MSC_VER) && defined(_M_IX86)) && !defined(__i386__) && \ |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 24 | !(defined(__NDK_MAJOR__) && __NDK_MAJOR <= 24) |