From: Aleksey Demakov Date: Sat, 7 Feb 2009 16:28:57 +0000 (+0000) Subject: small fix X-Git-Tag: before.move.to.git~33 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=3d685e0f39980ecfe48a6a14629e49cc7ab51f58;p=francis%2Flibjit.git small fix --- diff --git a/ChangeLog b/ChangeLog index d123f3b..4b69177 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ -2009-02-07 avd +2009-02-07 Aleksey Demakov * gen-sel-parser.y, gen-sel-scanner.l: remove obsolete files. * tools/Makefile.am: remove gen-sel target. + * jit/jit-apply-arm.h (jit_builtin_apply): fix bug and optimize. 2009-02-06 Klaus Treichel @@ -15,6 +16,10 @@ * include/jit/jit-arch-arm.h: add ARM arch header. * jit/Makefile.am, jit/jit-rules-arm.ins, jit/jit-rules-arm.sel: replace obsolete .sel file for ARM with .ins file. + * jit/jit-apply-arm.h: define jit_indirector_size, jit_should_pad, + override jit_builtin_apply. + * jit/jit-apply-arm.c (_jit_create_indirector, _jit_pad_buffer): add + functions. 2009-01-30 Peter Fristedt Kirill Kononenko diff --git a/jit/jit-apply-arm.h b/jit/jit-apply-arm.h index 2ccaa98..d166739 100644 --- a/jit/jit-apply-arm.h +++ b/jit/jit-apply-arm.h @@ -63,10 +63,7 @@ #define jit_builtin_apply(func,args,size,return_float,return_buf) \ do { \ register void *sp asm("sp"); \ - while(((unsigned int)sp) % JIT_SP_ALIGN_PUBLIC != 0) \ - { \ - sp=(void *)(((unsigned int) sp)+1); \ - } \ + sp = (void *) (((unsigned) sp) & ~(JIT_SP_ALIGN_PUBLIC - 1)); \ (return_buf) = __builtin_apply \ ((void (*)())(func), (args), (size)); \ } while (0)