aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorAndrea Corallo2019-11-10 14:51:38 +0100
committerAndrea Corallo2020-01-01 11:38:03 +0100
commitd5ffb4949044ae58fb418b1b214cc7c6eb16a29c (patch)
tree5320dd1b25427e2ba4b6429f22c1312825a4fb12 /src/comp.c
parentf9ea53442e6f492f1543a5e21479e72be8eff4c3 (diff)
downloademacs-d5ffb4949044ae58fb418b1b214cc7c6eb16a29c.tar.gz
emacs-d5ffb4949044ae58fb418b1b214cc7c6eb16a29c.zip
better comp-debug customize
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/comp.c b/src/comp.c
index 7fa55b12477..969495eb938 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -34,8 +34,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
34#include "buffer.h" 34#include "buffer.h"
35#include "blockinput.h" 35#include "blockinput.h"
36 36
37#define COMP_DEBUG 1
38
39/* C symbols emited for the load relocation mechanism. */ 37/* C symbols emited for the load relocation mechanism. */
40#define CURRENT_THREAD_RELOC_SYM "current_thread_reloc" 38#define CURRENT_THREAD_RELOC_SYM "current_thread_reloc"
41#define PURE_RELOC_SYM "pure_reloc" 39#define PURE_RELOC_SYM "pure_reloc"
@@ -44,6 +42,9 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
44#define TEXT_DATA_RELOC_SYM "text_data_reloc" 42#define TEXT_DATA_RELOC_SYM "text_data_reloc"
45#define TEXT_IMPORTED_FUNC_RELOC_SYM "text_imported_funcs" 43#define TEXT_IMPORTED_FUNC_RELOC_SYM "text_imported_funcs"
46 44
45#define SPEED XFIXNUM (Fsymbol_value (Qcomp_speed))
46#define COMP_DEBUG XFIXNUM (Fsymbol_value (Qcomp_debug))
47
47#define STR_VALUE(s) #s 48#define STR_VALUE(s) #s
48#define STR(s) STR_VALUE (s) 49#define STR(s) STR_VALUE (s)
49 50
@@ -3070,7 +3071,7 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
3070 gcc_jit_context_dump_to_file (comp.ctxt, 3071 gcc_jit_context_dump_to_file (comp.ctxt,
3071 format_string ("%s.c", SSDATA (ctxtname)), 3072 format_string ("%s.c", SSDATA (ctxtname)),
3072 1); 3073 1);
3073 if (COMP_DEBUG > 1) 3074 if (COMP_DEBUG > 2)
3074 gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); 3075 gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c");
3075 3076
3076 AUTO_STRING (dot_so, NATIVE_ELISP_SUFFIX); 3077 AUTO_STRING (dot_so, NATIVE_ELISP_SUFFIX);
@@ -3312,6 +3313,7 @@ syms_of_comp (void)
3312{ 3313{
3313 /* Compiler control customize. */ 3314 /* Compiler control customize. */
3314 DEFSYM (Qcomp_speed, "comp-speed"); 3315 DEFSYM (Qcomp_speed, "comp-speed");
3316 DEFSYM (Qcomp_debug, "comp-debug");
3315 /* Limple instruction set. */ 3317 /* Limple instruction set. */
3316 DEFSYM (Qcomment, "comment"); 3318 DEFSYM (Qcomment, "comment");
3317 DEFSYM (Qjump, "jump"); 3319 DEFSYM (Qjump, "jump");