mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-06 12:10:28 +02:00
ARM: Correct constants offset check
* lib/jit_arm.c: Correct check to guard overflow of index of constants from program counter.
This commit is contained in:
parent
ce2dd3d446
commit
f63d064a10
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-12-21 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* lib/jit_arm.c: Correct check to guard overflow of index
|
||||
of constants from program counter.
|
||||
|
||||
2014-11-24 Paulo Andrade <pcpa@gnu.org>
|
||||
|
||||
* lib/lightning.c: Remove an optimization to calee save
|
||||
|
|
|
@ -1530,7 +1530,9 @@ _emit_code(jit_state_t *_jit)
|
|||
/* update register live state */
|
||||
jit_reglive(node);
|
||||
|
||||
if (_jitc->consts.length && _jit->pc.uc - _jitc->consts.data >= 3968) {
|
||||
if (_jitc->consts.length &&
|
||||
(jit_uword_t)_jit->pc.uc -
|
||||
(jit_uword_t)_jitc->consts.patches[0] >= 3968) {
|
||||
/* longest sequence should be 64 bytes, but preventively
|
||||
* do not let it go past 128 remaining bytes before a flush */
|
||||
if (node->next &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue