[clang] [clang][bytecode] Disable tailcalls on i386 (PR #189242)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 29 06:19:16 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
Works around a build problem with GCC 15 reported in https://github.com/llvm/llvm-project/pull/188419#issuecomment-4148497506
---
Full diff: https://github.com/llvm/llvm-project/pull/189242.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Interp.cpp (+2-1)
``````````diff
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp
index 168f5c363c42d..0a13456e6026d 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -40,7 +40,8 @@ using namespace clang::interp;
// We disable it on MSVC generally since it doesn't seem to be able
// to handle the way we use tailcalls.
// PPC can't tail-call external calls, which is a problem for InterpNext.
-#if defined(_MSC_VER) || defined(__powerpc__) || !defined(MUSTTAIL)
+#if defined(_MSC_VER) || defined(__powerpc__) || !defined(MUSTTAIL) || \
+ defined(__i386__)
#undef MUSTTAIL
#define MUSTTAIL
#define USE_TAILCALLS 0
``````````
</details>
https://github.com/llvm/llvm-project/pull/189242
More information about the cfe-commits
mailing list