static void
emit_ctxt_code (void)
{
-
comp.current_thread_ref =
gcc_jit_lvalue_as_rvalue (
gcc_jit_context_new_global (
NULL,
GCC_JIT_GLOBAL_EXPORTED,
gcc_jit_context_new_array_type (comp.ctxt,
- NULL,
- comp.lisp_obj_type,
- d_reloc_len),
+ NULL,
+ comp.lisp_obj_type,
+ d_reloc_len),
DATA_RELOC_SYM));
emit_static_object (TEXT_DATA_RELOC_SYM, d_reloc);
for (ptrdiff_t i = 0; i < max_args; i++)
type[i] = comp.lisp_obj_type;
- gcc_jit_param **param = SAFE_ALLOCA (max_args *sizeof (*param));
- for (int i = max_args - 1; i >= 0; i--)
+ gcc_jit_param **param = SAFE_ALLOCA (max_args * sizeof (*param));
+ for (int i = 0; i < max_args; ++i)
param[i] = gcc_jit_context_new_param (comp.ctxt,
NULL,
type[i],