diff options
| author | Andrea Corallo | 2019-09-29 19:31:19 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:37:55 +0100 |
| commit | b8127e988e2af662bdcd7cf25d281469a5142df6 (patch) | |
| tree | 36487a179f2e5ada0f43a78b694bb2ab9db59ecc /src/comp.c | |
| parent | bf253dd2e9e41a14b813692828ffc43ed24391ae (diff) | |
| download | emacs-b8127e988e2af662bdcd7cf25d281469a5142df6.tar.gz emacs-b8127e988e2af662bdcd7cf25d281469a5142df6.zip | |
remove unnecessary autostirng usage
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/comp.c b/src/comp.c index f55aa8191e3..15699a02118 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -3047,23 +3047,19 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file, | |||
| 3047 | define_add1_sub1 (); | 3047 | define_add1_sub1 (); |
| 3048 | define_negate (); | 3048 | define_negate (); |
| 3049 | 3049 | ||
| 3050 | /* Compile all functions. Can't be done before because the | ||
| 3051 | relocation structs has to be already defined. */ | ||
| 3052 | struct Lisp_Hash_Table *func_h | 3050 | struct Lisp_Hash_Table *func_h |
| 3053 | = XHASH_TABLE (FUNCALL1 (comp-ctxt-funcs-h, Vcomp_ctxt)); | 3051 | = XHASH_TABLE (FUNCALL1 (comp-ctxt-funcs-h, Vcomp_ctxt)); |
| 3054 | for (ptrdiff_t i = 0; i < func_h->count; i++) | 3052 | for (ptrdiff_t i = 0; i < func_h->count; i++) |
| 3055 | declare_function (HASH_VALUE (func_h, i)); | 3053 | declare_function (HASH_VALUE (func_h, i)); |
| 3054 | /* Compile all functions. Can't be done before because the | ||
| 3055 | relocation structs has to be already defined. */ | ||
| 3056 | for (ptrdiff_t i = 0; i < func_h->count; i++) | 3056 | for (ptrdiff_t i = 0; i < func_h->count; i++) |
| 3057 | compile_function (HASH_VALUE (func_h, i)); | 3057 | compile_function (HASH_VALUE (func_h, i)); |
| 3058 | 3058 | ||
| 3059 | /* FIXME use format_string here */ | ||
| 3060 | if (COMP_DEBUG) | 3059 | if (COMP_DEBUG) |
| 3061 | { | 3060 | gcc_jit_context_dump_to_file (comp.ctxt, |
| 3062 | AUTO_STRING (dot_c, ".c"); | 3061 | format_string ("%s.c", SSDATA (ctxtname)), |
| 3063 | const char *filename = | 3062 | 1); |
| 3064 | (const char *) SDATA (CALLN (Fconcat, ctxtname, dot_c)); | ||
| 3065 | gcc_jit_context_dump_to_file (comp.ctxt, filename, 1); | ||
| 3066 | } | ||
| 3067 | if (COMP_DEBUG > 1) | 3063 | if (COMP_DEBUG > 1) |
| 3068 | gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); | 3064 | gcc_jit_context_dump_reproducer_to_file (comp.ctxt, "comp_reproducer.c"); |
| 3069 | 3065 | ||