From: Aleksey Demakov Date: Wed, 4 Apr 2007 02:52:05 +0000 (+0000) Subject: fix compilation for archs without register stack X-Git-Tag: before.move.to.git~144 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=08cde06e04e20c83beb133797b0adfaba39a9aa7;p=francis%2Flibjit.git fix compilation for archs without register stack --- diff --git a/ChangeLog b/ChangeLog index ac53795..ccfc53f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-04 Aleksey Demakov + + * jit/jit-reg-alloc.c (commit_output_value): fix compilation for + archs without register stack (thanks Klaus). + 2007-03-04 Aleksey Demakov * configure.in: update working version to "0.1.1". diff --git a/jit/jit-reg-alloc.c b/jit/jit-reg-alloc.c index a7dea56..716c45b 100644 --- a/jit/jit-reg-alloc.c +++ b/jit/jit-reg-alloc.c @@ -2612,10 +2612,12 @@ commit_output_value(jit_gencode_t gen, _jit_regs_t *regs, int push_stack_top) return; } +#ifdef JIT_REG_STACK if(IS_STACK_REG(desc->reg) && push_stack_top) { ++(gen->reg_stack_top); } +#endif bind_value(gen, desc->value, desc->reg, desc->other_reg, 0); if(!desc->used)