aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/comp.c b/src/comp.c
index 66a7ab789a8..c230536ac59 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -756,12 +756,12 @@ comp_hash_source_file (Lisp_Object filename)
756 756
757DEFUN ("comp--subr-signature", Fcomp__subr_signature, 757DEFUN ("comp--subr-signature", Fcomp__subr_signature,
758 Scomp__subr_signature, 1, 1, 0, 758 Scomp__subr_signature, 1, 1, 0,
759 doc: /* Support function to 'hash_native_abi'. 759 doc: /* Support function to hash_native_abi.
760For internal use. */) 760For internal use. */)
761 (Lisp_Object subr) 761 (Lisp_Object subr)
762{ 762{
763 return concat2 (Fsubr_name (subr), 763 return concat2 (Fsubr_name (subr),
764 Fprin1_to_string (Fsubr_arity (subr), Qnil)); 764 Fprin1_to_string (Fsubr_arity (subr), Qnil, Qnil));
765} 765}
766 766
767/* Produce a key hashing Vcomp_subr_list. */ 767/* Produce a key hashing Vcomp_subr_list. */
@@ -1707,7 +1707,7 @@ static gcc_jit_lvalue *
1707emit_lisp_obj_reloc_lval (Lisp_Object obj) 1707emit_lisp_obj_reloc_lval (Lisp_Object obj)
1708{ 1708{
1709 emit_comment (format_string ("l-value for lisp obj: %s", 1709 emit_comment (format_string ("l-value for lisp obj: %s",
1710 SSDATA (Fprin1_to_string (obj, Qnil)))); 1710 SSDATA (Fprin1_to_string (obj, Qnil, Qnil))));
1711 1711
1712 imm_reloc_t reloc = obj_to_reloc (obj); 1712 imm_reloc_t reloc = obj_to_reloc (obj);
1713 return gcc_jit_context_new_array_access (comp.ctxt, 1713 return gcc_jit_context_new_array_access (comp.ctxt,
@@ -1720,7 +1720,7 @@ static gcc_jit_rvalue *
1720emit_lisp_obj_rval (Lisp_Object obj) 1720emit_lisp_obj_rval (Lisp_Object obj)
1721{ 1721{
1722 emit_comment (format_string ("const lisp obj: %s", 1722 emit_comment (format_string ("const lisp obj: %s",
1723 SSDATA (Fprin1_to_string (obj, Qnil)))); 1723 SSDATA (Fprin1_to_string (obj, Qnil, Qnil))));
1724 1724
1725 if (NILP (obj)) 1725 if (NILP (obj))
1726 { 1726 {
@@ -1968,7 +1968,7 @@ emit_mvar_rval (Lisp_Object mvar)
1968 SSDATA ( 1968 SSDATA (
1969 Fprin1_to_string ( 1969 Fprin1_to_string (
1970 NILP (func) ? value : CALL1I (comp-func-c-name, func), 1970 NILP (func) ? value : CALL1I (comp-func-c-name, func),
1971 Qnil))); 1971 Qnil, Qnil)));
1972 } 1972 }
1973 if (FIXNUMP (value)) 1973 if (FIXNUMP (value))
1974 { 1974 {
@@ -2471,7 +2471,7 @@ emit_limple_insn (Lisp_Object insn)
2471 else if (EQ (op, Qsetimm)) 2471 else if (EQ (op, Qsetimm))
2472 { 2472 {
2473 /* Ex: (setimm #s(comp-mvar 9 1 t 3 nil) a). */ 2473 /* Ex: (setimm #s(comp-mvar 9 1 t 3 nil) a). */
2474 emit_comment (SSDATA (Fprin1_to_string (arg[1], Qnil))); 2474 emit_comment (SSDATA (Fprin1_to_string (arg[1], Qnil, Qnil)));
2475 imm_reloc_t reloc = obj_to_reloc (arg[1]); 2475 imm_reloc_t reloc = obj_to_reloc (arg[1]);
2476 emit_frame_assignment ( 2476 emit_frame_assignment (
2477 arg[0], 2477 arg[0],
@@ -2647,7 +2647,7 @@ emit_static_object (const char *name, Lisp_Object obj)
2647 specbind (intern_c_string ("print-quoted"), Qt); 2647 specbind (intern_c_string ("print-quoted"), Qt);
2648 specbind (intern_c_string ("print-gensym"), Qt); 2648 specbind (intern_c_string ("print-gensym"), Qt);
2649 specbind (intern_c_string ("print-circle"), Qt); 2649 specbind (intern_c_string ("print-circle"), Qt);
2650 Lisp_Object str = Fprin1_to_string (obj, Qnil); 2650 Lisp_Object str = Fprin1_to_string (obj, Qnil, Qnil);
2651 unbind_to (count, Qnil); 2651 unbind_to (count, Qnil);
2652 2652
2653 ptrdiff_t len = SBYTES (str); 2653 ptrdiff_t len = SBYTES (str);
@@ -4262,7 +4262,7 @@ compile_function (Lisp_Object func)
4262 { 4262 {
4263 Lisp_Object block_name = HASH_KEY (ht, i); 4263 Lisp_Object block_name = HASH_KEY (ht, i);
4264 if (!EQ (block_name, Qentry) 4264 if (!EQ (block_name, Qentry)
4265 && !EQ (block_name, Qunbound)) 4265 && !BASE_EQ (block_name, Qunbound))
4266 declare_block (block_name); 4266 declare_block (block_name);
4267 } 4267 }
4268 4268
@@ -4275,7 +4275,7 @@ compile_function (Lisp_Object func)
4275 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (ht); i++) 4275 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (ht); i++)
4276 { 4276 {
4277 Lisp_Object block_name = HASH_KEY (ht, i); 4277 Lisp_Object block_name = HASH_KEY (ht, i);
4278 if (!EQ (block_name, Qunbound)) 4278 if (!BASE_EQ (block_name, Qunbound))
4279 { 4279 {
4280 Lisp_Object block = HASH_VALUE (ht, i); 4280 Lisp_Object block = HASH_VALUE (ht, i);
4281 Lisp_Object insns = CALL1I (comp-block-insns, block); 4281 Lisp_Object insns = CALL1I (comp-block-insns, block);
@@ -4890,12 +4890,12 @@ DEFUN ("comp--compile-ctxt-to-file", Fcomp__compile_ctxt_to_file,
4890 struct Lisp_Hash_Table *func_h = 4890 struct Lisp_Hash_Table *func_h =
4891 XHASH_TABLE (CALL1I (comp-ctxt-funcs-h, Vcomp_ctxt)); 4891 XHASH_TABLE (CALL1I (comp-ctxt-funcs-h, Vcomp_ctxt));
4892 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++) 4892 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
4893 if (!EQ (HASH_VALUE (func_h, i), Qunbound)) 4893 if (!BASE_EQ (HASH_VALUE (func_h, i), Qunbound))
4894 declare_function (HASH_VALUE (func_h, i)); 4894 declare_function (HASH_VALUE (func_h, i));
4895 /* Compile all functions. Can't be done before because the 4895 /* Compile all functions. Can't be done before because the
4896 relocation structs has to be already defined. */ 4896 relocation structs has to be already defined. */
4897 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++) 4897 for (ptrdiff_t i = 0; i < HASH_TABLE_SIZE (func_h); i++)
4898 if (!EQ (HASH_VALUE (func_h, i), Qunbound)) 4898 if (!BASE_EQ (HASH_VALUE (func_h, i), Qunbound))
4899 compile_function (HASH_VALUE (func_h, i)); 4899 compile_function (HASH_VALUE (func_h, i));
4900 4900
4901 /* Work around bug#46495 (GCC PR99126). */ 4901 /* Work around bug#46495 (GCC PR99126). */
@@ -5342,7 +5342,7 @@ load_comp_unit (struct Lisp_Native_Comp_Unit *comp_u, bool loading_dump,
5342 are necessary exclusively during the first load. Once these 5342 are necessary exclusively during the first load. Once these
5343 are collected we don't have to maintain them in the heap 5343 are collected we don't have to maintain them in the heap
5344 forever. */ 5344 forever. */
5345 Lisp_Object volatile data_ephemeral_vec; 5345 Lisp_Object volatile data_ephemeral_vec = Qnil;
5346 /* In case another load of the same CU is active on the stack 5346 /* In case another load of the same CU is active on the stack
5347 all ephemeral data is hold by that frame. Re-writing 5347 all ephemeral data is hold by that frame. Re-writing
5348 'data_ephemeral_vec' would be not only a waste of cycles but 5348 'data_ephemeral_vec' would be not only a waste of cycles but