mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
PR8919 - LLVM incorrectly generates "_alloca" as the stack probing call. That
works only on MinGW32. On 64-bit, the function to call is "__chkstk". Patch by KS Sreeram! llvm-svn: 122934
This commit is contained in:
parent
fae0dd1afa
commit
a59afdaec5
@ -566,6 +566,8 @@ void X86FrameInfo::emitPrologue(MachineFunction &MF) const {
|
||||
|
||||
const char *StackProbeSymbol =
|
||||
STI.isTargetWindows() ? "_chkstk" : "_alloca";
|
||||
if (Is64Bit && STI.isTargetCygMing())
|
||||
StackProbeSymbol = "__chkstk";
|
||||
unsigned CallOp = Is64Bit ? X86::CALL64pcrel32 : X86::CALLpcrel32;
|
||||
if (!isEAXAlive) {
|
||||
BuildMI(MBB, MBBI, DL, TII.get(X86::MOV32ri), X86::EAX)
|
||||
|
Loading…
Reference in New Issue
Block a user