diff options
| author | Andrea Corallo | 2019-12-19 10:34:21 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:38:13 +0100 |
| commit | ee4feb005ffe1d35ffc4d390d18b88ecfdebe2c2 (patch) | |
| tree | 3286ac3705f20aec55d46089724d91046dac0c4f /src/comp.c | |
| parent | 88671e638b308886a9d6b5a590ee1aee56746d7b (diff) | |
| download | emacs-ee4feb005ffe1d35ffc4d390d18b88ecfdebe2c2.tar.gz emacs-ee4feb005ffe1d35ffc4d390d18b88ecfdebe2c2.zip | |
fix some nits
Diffstat (limited to 'src/comp.c')
| -rw-r--r-- | src/comp.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/comp.c b/src/comp.c index 5f8fd35c64e..63c99b98334 100644 --- a/src/comp.c +++ b/src/comp.c | |||
| @@ -1770,7 +1770,6 @@ declare_runtime_imported_funcs (void) | |||
| 1770 | static void | 1770 | static void |
| 1771 | emit_ctxt_code (void) | 1771 | emit_ctxt_code (void) |
| 1772 | { | 1772 | { |
| 1773 | |||
| 1774 | comp.current_thread_ref = | 1773 | comp.current_thread_ref = |
| 1775 | gcc_jit_lvalue_as_rvalue ( | 1774 | gcc_jit_lvalue_as_rvalue ( |
| 1776 | gcc_jit_context_new_global ( | 1775 | gcc_jit_context_new_global ( |
| @@ -1804,9 +1803,9 @@ emit_ctxt_code (void) | |||
| 1804 | NULL, | 1803 | NULL, |
| 1805 | GCC_JIT_GLOBAL_EXPORTED, | 1804 | GCC_JIT_GLOBAL_EXPORTED, |
| 1806 | gcc_jit_context_new_array_type (comp.ctxt, | 1805 | gcc_jit_context_new_array_type (comp.ctxt, |
| 1807 | NULL, | 1806 | NULL, |
| 1808 | comp.lisp_obj_type, | 1807 | comp.lisp_obj_type, |
| 1809 | d_reloc_len), | 1808 | d_reloc_len), |
| 1810 | DATA_RELOC_SYM)); | 1809 | DATA_RELOC_SYM)); |
| 1811 | 1810 | ||
| 1812 | emit_static_object (TEXT_DATA_RELOC_SYM, d_reloc); | 1811 | emit_static_object (TEXT_DATA_RELOC_SYM, d_reloc); |
| @@ -2726,8 +2725,8 @@ declare_function (Lisp_Object func) | |||
| 2726 | for (ptrdiff_t i = 0; i < max_args; i++) | 2725 | for (ptrdiff_t i = 0; i < max_args; i++) |
| 2727 | type[i] = comp.lisp_obj_type; | 2726 | type[i] = comp.lisp_obj_type; |
| 2728 | 2727 | ||
| 2729 | gcc_jit_param **param = SAFE_ALLOCA (max_args *sizeof (*param)); | 2728 | gcc_jit_param **param = SAFE_ALLOCA (max_args * sizeof (*param)); |
| 2730 | for (int i = max_args - 1; i >= 0; i--) | 2729 | for (int i = 0; i < max_args; ++i) |
| 2731 | param[i] = gcc_jit_context_new_param (comp.ctxt, | 2730 | param[i] = gcc_jit_context_new_param (comp.ctxt, |
| 2732 | NULL, | 2731 | NULL, |
| 2733 | type[i], | 2732 | type[i], |