[llvm] r205516 - ARM: Use __STACK_LIMIT symbol for segmented stacks

Oliver Stannard oliver.stannard at arm.com
Thu Apr 3 01:45:21 PDT 2014


Author: olista01
Date: Thu Apr  3 03:45:16 2014
New Revision: 205516

URL: http://llvm.org/viewvc/llvm-project?rev=205516&view=rev
Log:
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.


Modified:
    llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp?rev=205516&r1=205515&r2=205516&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFrameLowering.cpp Thu Apr  3 03:45:16 2014
@@ -1783,7 +1783,7 @@ void ARMFrameLowering::adjustForSegmente
   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());
 





More information about the llvm-commits mailing list