if (COMP_DEBUG)
{
- logfile = fopen ("libgccjit.log", "w");
- gcc_jit_context_set_logfile (comp.ctxt,
- logfile,
- 0, 0);
gcc_jit_context_set_bool_option (comp.ctxt,
- GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES,
+ GCC_JIT_BOOL_OPTION_DEBUGINFO,
1);
}
if (COMP_DEBUG > 1)
{
+ logfile = fopen ("libgccjit.log", "w");
+ gcc_jit_context_set_logfile (comp.ctxt,
+ logfile,
+ 0, 0);
gcc_jit_context_set_bool_option (comp.ctxt,
- GCC_JIT_BOOL_OPTION_DEBUGINFO,
+ GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES,
1);
gcc_jit_context_set_bool_option (comp.ctxt,
- GCC_JIT_BOOL_OPTION_DUMP_INITIAL_GIMPLE,
+ GCC_JIT_BOOL_OPTION_DUMP_EVERYTHING,
1);
-
gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c");
}
static void
release_comp (void)
{
- if (COMP_DEBUG)
- gcc_jit_context_dump_to_file (comp.ctxt, "gcc-ctxt-dump.c", 1);
if (comp.ctxt)
gcc_jit_context_release(comp.ctxt);
}
}
+ if (COMP_DEBUG)
+ gcc_jit_context_dump_to_file (comp.ctxt, "gcc-ctxt-dump.c", 1);
comp_res.gcc_res = gcc_jit_context_compile(comp.ctxt);
goto exit;
if (dump_asm)
{
- gcc_jit_context_compile_to_file(comp.ctxt,
- GCC_JIT_OUTPUT_KIND_ASSEMBLER,
- DISASS_FILE_NAME);
+ gcc_jit_context_compile_to_file (comp.ctxt,
+ GCC_JIT_OUTPUT_KIND_ASSEMBLER,
+ DISASS_FILE_NAME);
}
unblock_atimers (&oldset);
release_comp ();