Author: Alex Rønne Petersen
Date: 2026-10-19T08:23:49+02:00
New Revision: d5ff1316673e4e71e6f7c3ff8d80e667cf00aa25

URL: 
https://github.com/llvm/llvm-project/commit/d5ff1316673e4e71e6f7c3ff8d80e667cf00aa25
DIFF: 
https://github.com/llvm/llvm-project/commit/d5ff1316673e4e71e6f7c3ff8d80e667cf00aa25.diff

LOG: [clang][bytecode] disable tail calls on mips (#229679)

As for the other architectures, this caused a Clang build for MIPS to
fail.

(cherry picked from commit cbc387549f1d218959827d90c4d45541f74b7da2)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Interp.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/Interp.cpp 
b/clang/lib/AST/ByteCode/Interp.cpp
index 58bbf4aaf5f89..46d161e604700 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -39,9 +39,10 @@ using namespace clang::interp;
 // On MSVC, musttail does not guarantee tail calls in debug mode.
 // 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.
+// MIPS and 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


        
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to