https://github.com/tbaederr created 
https://github.com/llvm/llvm-project/pull/189242

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

>From e78cbd51527fadfac3aa9150db366789a351a46f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Sun, 29 Mar 2026 11:52:42 +0200
Subject: [PATCH] [clang][bytecode] Disable tailcalls on i386

Works around a build problem with GCC 15 reported in
https://github.com/llvm/llvm-project/pull/188419#issuecomment-4148497506
---
 clang/lib/AST/ByteCode/Interp.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

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

Reply via email to