]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
output_branch: correct the offset when outputting a long-form backward branch.
authorRhys Weatherley <rweather@southern-storm.com.au>
Tue, 12 Oct 2004 01:19:24 +0000 (01:19 +0000)
committerRhys Weatherley <rweather@southern-storm.com.au>
Tue, 12 Oct 2004 01:19:24 +0000 (01:19 +0000)
ChangeLog
jit/jit-rules-x86.c

index 855e8b5b2adc33896bdf85258efb2c2ab90ca010..3883a820ef2831be65323a9f52037c07d24b2cd9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
 
+2004-10-12  Evin Robertson  <evin@users.sourceforge.net>
+
+       * jit/jit-rules-x86.c (output_branch): correct the offset
+       when outputting a long-form backward branch.
+
 2004-10-06  Rhys Weatherley  <rweather@southern-storm.com.au>
 
        * doc/Makefile.am, doc/libjit.texi, include/jit/Makefile.am,
index b027446a901acb7ca4f36c9e565b83b5fa17f0e6..b94f70549db413dccb9fe8c3672aad53180b3d90 100644 (file)
@@ -1162,6 +1162,7 @@ static unsigned char *output_branch
                        {
                                *inst++ = (unsigned char)(opcode >> 8);
                                *inst++ = (unsigned char)opcode;
+                               --offset;
                        }
                        x86_imm_emit32(inst, offset);
                }