guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 294/437: Correct change of possibly wrong bitmask in jit


From: Andy Wingo
Subject: [Guile-commits] 294/437: Correct change of possibly wrong bitmask in jit_update
Date: Mon, 2 Jul 2018 05:14:39 -0400 (EDT)

wingo pushed a commit to branch lightning
in repository guile.

commit f79f9777b1584dad6ac6e53a247d5f7e47171893
Author: pcpa <address@hidden>
Date:   Sun Aug 10 11:36:08 2014 -0300

    Correct change of possibly wrong bitmask in jit_update
    
        * lib/lightning.c: Change the correct live bitmask of
        return registers after a function call in jit_update.
---
 ChangeLog       | 5 +++++
 lib/lightning.c | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c4d7df1..1097a72 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-08-10 Paulo Andrade <address@hidden>
 
+       * lib/lightning.c: Change the correct live bitmask of
+       return registers after a function call in jit_update.
+
+2014-08-10 Paulo Andrade <address@hidden>
+
        * lib/lightning.c: Change assertions to have an int
        result and correct a bad bit mask assertion.
 
diff --git a/lib/lightning.c b/lib/lightning.c
index 2a89dd1..ecad2be 100644
--- a/lib/lightning.c
+++ b/lib/lightning.c
@@ -2043,19 +2043,19 @@ _jit_update(jit_state_t *_jit, jit_node_t *node,
            case jit_code_calli:
 #if defined(JIT_RET)
                if (jit_regset_tstbit(mask, JIT_RET)) {
-                   jit_regset_setbit(&_jitc->reglive, JIT_RET);
+                   jit_regset_setbit(live, JIT_RET);
                    jit_regset_clrbit(mask, JIT_RET);
                }
 #  if __arm__
                if (jit_regset_tstbit(mask, _R1)) {
-                   jit_regset_setbit(&_jitc->reglive, _R1);
+                   jit_regset_setbit(live, _R1);
                    jit_regset_clrbit(mask, _R1);
                }
 #  endif
 #endif
 #if defined(JIT_FRET)
                if (jit_regset_tstbit(mask, JIT_FRET)) {
-                   jit_regset_setbit(&_jitc->reglive, JIT_FRET);
+                   jit_regset_setbit(live, JIT_FRET);
                    jit_regset_clrbit(mask, JIT_FRET);
                }
 #endif



reply via email to

[Prev in Thread] Current Thread [Next in Thread]