mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-27 02:10:52 -08:00
rework debug dump
This commit is contained in:
parent
9cb5ce763d
commit
8f0bb7d264
1 changed files with 7 additions and 1 deletions
|
|
@ -1111,8 +1111,12 @@ init_comp (int opt_level)
|
|||
}
|
||||
if (COMP_DEBUG > 1)
|
||||
{
|
||||
gcc_jit_context_set_bool_option (comp.ctxt,
|
||||
GCC_JIT_BOOL_OPTION_DEBUGINFO,
|
||||
1);
|
||||
|
||||
gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c");
|
||||
gcc_jit_context_dump_to_file (comp.ctxt, "emacs-gcc-code.c", 0);
|
||||
|
||||
}
|
||||
|
||||
gcc_jit_context_set_int_option (comp.ctxt,
|
||||
|
|
@ -1268,6 +1272,8 @@ init_comp (int opt_level)
|
|||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue