aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-06-20 23:31:16 +0200
committerAndrea Corallo2020-01-01 11:33:43 +0100
commit8f0bb7d2647c0f5d4da5ec1af3ca1936ca42f221 (patch)
tree840aa69394e48d05f336ceff90b8690a0d7bb2e5 /src/comp.c
parent9cb5ce763d6e9ccb795704c1dfe0aa711b047426 (diff)
downloademacs-8f0bb7d2647c0f5d4da5ec1af3ca1936ca42f221.tar.gz
emacs-8f0bb7d2647c0f5d4da5ec1af3ca1936ca42f221.zip
rework debug dump
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/comp.c b/src/comp.c
index d08ec8c7c9c..201ffa65597 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -1111,8 +1111,12 @@ init_comp (int opt_level)
1111 } 1111 }
1112 if (COMP_DEBUG > 1) 1112 if (COMP_DEBUG > 1)
1113 { 1113 {
1114 gcc_jit_context_set_bool_option (comp.ctxt,
1115 GCC_JIT_BOOL_OPTION_DEBUGINFO,
1116 1);
1117
1114 gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); 1118 gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c");
1115 gcc_jit_context_dump_to_file (comp.ctxt, "emacs-gcc-code.c", 0); 1119
1116 } 1120 }
1117 1121
1118 gcc_jit_context_set_int_option (comp.ctxt, 1122 gcc_jit_context_set_int_option (comp.ctxt,
@@ -1268,6 +1272,8 @@ init_comp (int opt_level)
1268static void 1272static void
1269release_comp (void) 1273release_comp (void)
1270{ 1274{
1275 if (COMP_DEBUG)
1276 gcc_jit_context_dump_to_file (comp.ctxt, "gcc-ctxt-dump.c", 1);
1271 if (comp.ctxt) 1277 if (comp.ctxt)
1272 gcc_jit_context_release(comp.ctxt); 1278 gcc_jit_context_release(comp.ctxt);
1273 1279