mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
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
This commit is contained in:
@@ -1783,7 +1783,7 @@ void ARMFrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const {
|
|||||||
if (Thumb && ST->isThumb1Only()) {
|
if (Thumb && ST->isThumb1Only()) {
|
||||||
unsigned PCLabelId = ARMFI->createPICLabelUId();
|
unsigned PCLabelId = ARMFI->createPICLabelUId();
|
||||||
ARMConstantPoolValue *NewCPV = ARMConstantPoolSymbol::Create(
|
ARMConstantPoolValue *NewCPV = ARMConstantPoolSymbol::Create(
|
||||||
MF.getFunction()->getContext(), "STACK_LIMIT", PCLabelId, 0);
|
MF.getFunction()->getContext(), "__STACK_LIMIT", PCLabelId, 0);
|
||||||
MachineConstantPool *MCP = MF.getConstantPool();
|
MachineConstantPool *MCP = MF.getConstantPool();
|
||||||
unsigned CPI = MCP->getConstantPoolIndex(NewCPV, MF.getAlignment());
|
unsigned CPI = MCP->getConstantPoolIndex(NewCPV, MF.getAlignment());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user