1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-24 20:30:28 +02:00

ARM: Do not emit a nop stack adjust instruction.

lib/jit_arm-cpu.c: Only adjust stack pointer in prolog if
	need stack space, that is, do not emit a nop instruction
	subtracting zero from the stack pointer.
This commit is contained in:
pcpa 2014-04-05 17:14:04 -03:00
parent 16384ff2fe
commit 6726b2b8f5
2 changed files with 8 additions and 1 deletions

View file

@ -3725,7 +3725,8 @@ _prolog(jit_state_t *_jit, jit_node_t *node)
PUSH(0x3ff|(1<<_FP_REGNO)|(1<<_LR_REGNO));
}
movr(_FP_REGNO, _SP_REGNO);
subi(_SP_REGNO, _SP_REGNO, _jitc->function->stack);
if (_jitc->function->stack)
subi(_SP_REGNO, _SP_REGNO, _jitc->function->stack);
}
static void