mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-18 18:40:22 +02:00
Correct logic error with jit_live in jit_retr
* lib/jit_aarch64.c, lib/jit_alpha.c, lib/jit_arm.c, lib/jit_mips.c, lib/jit_ppc.c, lib/jit_sparc.c, lib/jit_x86.c: Correct wrong logic in usage of jit_live in jit_retr. The problem is that if a temporary is required during epilog, the return register might be allocated, so, jit_live must always be used.
This commit is contained in:
parent
59f32e85c3
commit
2cf092efe4
8 changed files with 17 additions and 15 deletions
|
@ -331,8 +331,7 @@ _jit_retr(jit_state_t *_jit, jit_int32_t u)
|
|||
jit_inc_synth_w(retr, u);
|
||||
if (JIT_RET != u)
|
||||
jit_movr(JIT_RET, u);
|
||||
else
|
||||
jit_live(JIT_RET);
|
||||
jit_live(JIT_RET);
|
||||
jit_ret();
|
||||
jit_dec_synth();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue