[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/native-comp 6ba94f7 5/8: * src/comp.c (Fcomp__compile_ctxt_to_fi
From: |
Andrea Corallo |
Subject: |
feature/native-comp 6ba94f7 5/8: * src/comp.c (Fcomp__compile_ctxt_to_file): Fix hash table iteration. |
Date: |
Fri, 1 Jan 2021 08:08:13 -0500 (EST) |
branch: feature/native-comp
commit 6ba94f7c77b4013e15f8a5a9181fba9a2df20ab7
Author: Andrea Corallo <akrl@sdf.org>
Commit: Andrea Corallo <akrl@sdf.org>
* src/comp.c (Fcomp__compile_ctxt_to_file): Fix hash table iteration.
---
src/comp.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/comp.c b/src/comp.c
index da43610..2670c91 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4413,12 +4413,14 @@ DEFUN ("comp--compile-ctxt-to-file",
Fcomp__compile_ctxt_to_file,
struct Lisp_Hash_Table *func_h =
XHASH_TABLE (CALL1I (comp-ctxt-funcs-h, Vcomp_ctxt));
- for (ptrdiff_t i = 0; i < func_h->count; i++)
- declare_function (HASH_VALUE (func_h, i));
+ for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
+ if (!EQ (HASH_VALUE (func_h, i), Qunbound))
+ declare_function (HASH_VALUE (func_h, i));
/* Compile all functions. Can't be done before because the
relocation structs has to be already defined. */
- for (ptrdiff_t i = 0; i < func_h->count; i++)
- compile_function (HASH_VALUE (func_h, i));
+ for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
+ if (!EQ (HASH_VALUE (func_h, i), Qunbound))
+ compile_function (HASH_VALUE (func_h, i));
add_driver_options ();
- feature/native-comp updated (db2a493 -> 807471f), Andrea Corallo, 2021/01/01
- feature/native-comp e81643b 1/8: * Add `comp-insert-insn', Andrea Corallo, 2021/01/01
- feature/native-comp f78580a 2/8: * lisp/emacs-lisp/comp.el (comp-limple-lock-keywords): Color returns as red., Andrea Corallo, 2021/01/01
- feature/native-comp 6ba94f7 5/8: * src/comp.c (Fcomp__compile_ctxt_to_file): Fix hash table iteration.,
Andrea Corallo <=
- feature/native-comp e9f5fad 3/8: * Fix two predicates for missing negation handling, Andrea Corallo, 2021/01/01
- feature/native-comp 93ff838 6/8: * Clean unreachable block using dominance tree to handle circularities, Andrea Corallo, 2021/01/01
- feature/native-comp 67c443a 4/8: Introduce 'unreachable' LIMPLE operator, Andrea Corallo, 2021/01/01
- feature/native-comp c29037c 7/8: * lisp/emacs-lisp/comp.el (comp-compute-dominator-tree): Fix., Andrea Corallo, 2021/01/01
- feature/native-comp 807471f 8/8: ; * lisp/emacs-lisp/comp.el (comp-compute-dominator-tree): Reindent., Andrea Corallo, 2021/01/01