aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/port_def.inc
diff options
context:
space:
mode:
authorGergely Nagy <ngg@ngg.hu>2022-01-18 19:15:32 +0100
committerGergely Nagy <ngg@ngg.hu>2022-01-18 19:15:32 +0100
commit639551d445fd72be1b3dcc9600495f9f124e52fe (patch)
treeb48a4b351ce44539079dff2f0420f1c0d50672fc /src/google/protobuf/port_def.inc
parent41e22cde8d8a44c35127a26c19e08b180e0b30a4 (diff)
downloadprotobuf-639551d445fd72be1b3dcc9600495f9f124e52fe.tar.gz
Disable [[clang::musttail]] attribute on Windows x86 (#9421)
Diffstat (limited to 'src/google/protobuf/port_def.inc')
-rw-r--r--src/google/protobuf/port_def.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/google/protobuf/port_def.inc b/src/google/protobuf/port_def.inc
index 7e9119112..aa9a6758a 100644
--- a/src/google/protobuf/port_def.inc
+++ b/src/google/protobuf/port_def.inc
@@ -229,11 +229,13 @@
#ifdef PROTOBUF_TAILCALL
#error PROTOBUF_TAILCALL was previously defined
#endif
-#if __has_cpp_attribute(clang::musttail) && \
- !defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__)
+#if __has_cpp_attribute(clang::musttail) && \
+ !defined(__arm__) && !defined(_ARCH_PPC) && !defined(__wasm__) && \
+ !(defined(_MSC_VER) && defined(_M_IX86))
# ifndef PROTO2_OPENSOURCE
// Compilation fails on ARM32: b/195943306
// Compilation fails on powerpc64le: b/187985113
+// Compilation fails on X86 Windows: https://github.com/llvm/llvm-project/issues/53271
# endif
#define PROTOBUF_MUSTTAIL [[clang::musttail]]
#define PROTOBUF_TAILCALL true