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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs