From b8c20fdb2b5cf219621ac7e1be8ce91246e83253 Mon Sep 17 00:00:00 2001 From: Oliver Stannard Date: Thu, 3 Apr 2014 08:45:16 +0000 Subject: [PATCH] ARM: Use __STACK_LIMIT symbol for segmented stacks We cannot use STACK_LIMIT, as it is not reserved for the compiler by the C spec. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205516 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMFrameLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMFrameLowering.cpp b/lib/Target/ARM/ARMFrameLowering.cpp index c685d3e4c34..36ecfca6e75 100644 --- a/lib/Target/ARM/ARMFrameLowering.cpp +++ b/lib/Target/ARM/ARMFrameLowering.cpp @@ -1783,7 +1783,7 @@ void ARMFrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const { if (Thumb && ST->isThumb1Only()) { unsigned PCLabelId = ARMFI->createPICLabelUId(); ARMConstantPoolValue *NewCPV = ARMConstantPoolSymbol::Create( - MF.getFunction()->getContext(), "STACK_LIMIT", PCLabelId, 0); + MF.getFunction()->getContext(), "__STACK_LIMIT", PCLabelId, 0); MachineConstantPool *MCP = MF.getConstantPool(); unsigned CPI = MCP->getConstantPoolIndex(NewCPV, MF.getAlignment()); -- 2.34.1