ARM: Use __STACK_LIMIT symbol for segmented stacks
authorOliver Stannard <oliver.stannard@arm.com>
Thu, 3 Apr 2014 08:45:16 +0000 (08:45 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Thu, 3 Apr 2014 08:45:16 +0000 (08:45 +0000)
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

index c685d3e4c3407e2a2421f2cf9b7f56a5558ea899..36ecfca6e75ad1c7873b04e0225a522092c5c12c 100644 (file)
@@ -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());