[clang] [clang][bytecode] disable tail calls on mips (PR #229679)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 7 00:36:52 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Alex Rønne Petersen (alexrp)
<details>
<summary>Changes</summary>
As for the other architectures, this caused a Clang build for MIPS to fail.
---
Full diff: https://github.com/llvm/llvm-project/pull/229679.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Interp.cpp (+1-1)
``````````diff
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp
index 25605ba04c7bdf0..2b978ecc7f00c5c 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -42,7 +42,7 @@ using namespace clang::interp;
// 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) || \
- defined(__i386__) || defined(__sparc__)
+ defined(__i386__) || defined(__sparc__) || defined(__mips__)
#undef MUSTTAIL
#define MUSTTAIL
#define USE_TAILCALLS 0
``````````
</details>
https://github.com/llvm/llvm-project/pull/229679
More information about the cfe-commits
mailing list