is on the stack but not the first.
fix a bug that caused global variables in Dynamic Pascal
to be incorrectly allocated as locals.
+ * jit/jit-reg-alloc.c (_jit_regs_load_to_top_two): handle the
+ case where the second value is on the stack but not the first.
+
2004-05-10 Rhys Weatherley <rweather@southern-storm.com.au>
* jit/jit-reg-alloc.c, jit/jit-reg-alloc.h, jit/jit-rules-interp.c:
}
spill_all_stack(gen, type_reg);
}
+ else if(value2->in_register && !(value->in_register))
+ {
+ /* We'll probably need to rearrange the stack, so spill first */
+ spill_all_stack(gen, type_reg);
+ }
/* If there are free registers of this type, then load the values now */
if(stack_regs_free(gen, type_reg, 2))