[LLVMbugs] [Bug 17506] New: [SPARC64] 64bit target tries to do tail call optimization, causing runtime assertion
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 7 21:02:11 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17506
Bug ID: 17506
Summary: [SPARC64] 64bit target tries to do tail call
optimization, causing runtime assertion
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: Sparc
Assignee: unassignedbugs at nondot.org
Reporter: syoyofujita at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Tail call optimization isn't yet supported on Sparc 64bit.
As done in 32bit target, disable tail call optimization to fix the problem.
diff --git a/lib/Target/Sparc/SparcISelLowering.cpp
b/lib/Target/Sparc/SparcISel
index 8057b39..04d05c4 100644
--- a/lib/Target/Sparc/SparcISelLowering.cpp
+++ b/lib/Target/Sparc/SparcISelLowering.cpp
@@ -1034,6 +1034,10 @@
SparcTargetLowering::LowerCall_64(TargetLowering::CallLow
SelectionDAG &DAG = CLI.DAG;
SDLoc DL = CLI.DL;
SDValue Chain = CLI.Chain;
+ bool &isTailCall = CLI.IsTailCall;
+
+ // Sparc target does not yet support tail call optimization.
+ isTailCall = false;
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131008/fba23093/attachment.html>
More information about the llvm-bugs
mailing list