[clang] 38f57bf - [clang][bytecode] Disable tailcalls on i386 (#189242)

via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 29 22:39:38 PDT 2026


Author: Timm Baeder
Date: 2026-03-30T07:39:33+02:00
New Revision: 38f57bf3dfd7411975d40c5de418f78e607a7a01

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

LOG: [clang][bytecode] Disable tailcalls on i386 (#189242)

Works around a build problem with GCC 15 reported in
https://github.com/llvm/llvm-project/pull/188419#issuecomment-4148497506

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 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


        


More information about the cfe-commits mailing list