diff options
| author | Andrea Corallo | 2021-01-08 00:44:55 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2021-01-09 12:06:45 +0100 |
| commit | 325c0765dfa4ef363d4f29650568bdafce0f0971 (patch) | |
| tree | 827fad648fc0f00e24c6b570229470d3580ddceb /src | |
| parent | 400f620f24b90540f71673a998c41327237330be (diff) | |
| download | emacs-325c0765dfa4ef363d4f29650568bdafce0f0971.tar.gz emacs-325c0765dfa4ef363d4f29650568bdafce0f0971.zip | |
Add new customize `comp-libgccjit-reproducer'
* lisp/emacs-lisp/comp.el (comp-libgccjit-reproducer): New customize.
* src/comp.c (Fcomp__compile_ctxt_to_file): Use
`comp-libgccjit-reproducer' for dumping repoducer.
(syms_of_comp): Define 'Qcomp_libgccjit_reproducer'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/comp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c index 2670c917ed6..f6445a7621d 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -4428,8 +4428,10 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, | |||
| 4428 | gcc_jit_context_dump_to_file (comp.ctxt, | 4428 | gcc_jit_context_dump_to_file (comp.ctxt, |
| 4429 | format_string ("%s.c", SSDATA (base_name)), | 4429 | format_string ("%s.c", SSDATA (base_name)), |
| 4430 | 1); | 4430 | 1); |
| 4431 | if (comp.debug > 2) | 4431 | if (!NILP (Fsymbol_value (Qcomp_libgccjit_reproducer))) |
| 4432 | gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); | 4432 | gcc_jit_context_dump_reproducer_to_file ( |
| 4433 | comp.ctxt, | ||
| 4434 | format_string ("comp_%s_repro.c", SSDATA (base_name))); | ||
| 4433 | 4435 | ||
| 4434 | Lisp_Object tmp_file = | 4436 | Lisp_Object tmp_file = |
| 4435 | Fmake_temp_file_internal (base_name, Qnil, build_string (".eln.tmp"), Qnil); | 4437 | Fmake_temp_file_internal (base_name, Qnil, build_string (".eln.tmp"), Qnil); |
| @@ -5099,6 +5101,7 @@ compiled one. */); | |||
| 5099 | DEFSYM (Qcomp_speed, "comp-speed"); | 5101 | DEFSYM (Qcomp_speed, "comp-speed"); |
| 5100 | DEFSYM (Qcomp_debug, "comp-debug"); | 5102 | DEFSYM (Qcomp_debug, "comp-debug"); |
| 5101 | DEFSYM (Qcomp_native_driver_options, "comp-native-driver-options"); | 5103 | DEFSYM (Qcomp_native_driver_options, "comp-native-driver-options"); |
| 5104 | DEFSYM (Qcomp_libgccjit_reproducer, "comp-libgccjit-reproducer"); | ||
| 5102 | 5105 | ||
| 5103 | /* Limple instruction set. */ | 5106 | /* Limple instruction set. */ |
| 5104 | DEFSYM (Qcomment, "comment"); | 5107 | DEFSYM (Qcomment, "comment"); |