mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-25 04:40:19 +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:
parent
16384ff2fe
commit
6726b2b8f5
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2014-04-05 Paulo Andrade <pcpa@gnu.org>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
2014-04-04 Paulo Andrade <pcpa@gnu.org>
|
2014-04-04 Paulo Andrade <pcpa@gnu.org>
|
||||||
|
|
||||||
* lib/jit_disasm.c: Correct a crash in the doc/printf example
|
* lib/jit_disasm.c: Correct a crash in the doc/printf example
|
||||||
|
|
|
@ -3725,7 +3725,8 @@ _prolog(jit_state_t *_jit, jit_node_t *node)
|
||||||
PUSH(0x3ff|(1<<_FP_REGNO)|(1<<_LR_REGNO));
|
PUSH(0x3ff|(1<<_FP_REGNO)|(1<<_LR_REGNO));
|
||||||
}
|
}
|
||||||
movr(_FP_REGNO, _SP_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
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue