* generate correct entry code on mips for subroutines with a stack frame >2^15-1

git-svn-id: trunk@21238 -
This commit is contained in:
florian 2012-05-05 18:34:31 +00:00
parent 5cfc865889
commit edbb826521

View File

@ -1418,7 +1418,13 @@ begin
list.concat(Taicpu.op_none(A_P_SET_NOREORDER));
list.concat(Taicpu.op_none(A_P_SET_NOMACRO));
list.concat(Taicpu.Op_reg_reg_const(A_ADDIU,NR_STACK_POINTER_REG,NR_STACK_POINTER_REG,-LocalSize));
if (-LocalSize >= simm16lo) and (-LocalSize <= simm16hi) then
list.concat(Taicpu.Op_reg_reg_const(A_ADDIU,NR_STACK_POINTER_REG,NR_STACK_POINTER_REG,-LocalSize))
else
begin
list.concat(Taicpu.Op_reg_const(A_LI,NR_R3,-LocalSize));
list.concat(Taicpu.Op_reg_reg_reg(A_ADD,NR_STACK_POINTER_REG,NR_STACK_POINTER_REG,NR_R3));
end;
if (cs_create_pic in current_settings.moduleswitches) and
(pi_needs_got in current_procinfo.flags) then