]> git.eshelyaron.com Git - emacs.git/commit
Pure storage removal: Adjust nativecomp code
authorPip Cet <pipcet@protonmail.com>
Tue, 20 Aug 2024 19:09:14 +0000 (19:09 +0000)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 10:25:52 +0000 (11:25 +0100)
commitc9c1ea908712d9841610719d35f7fd1855fa413c
tree5195d17f6c20d75c343c430603b7d1cc70dd7265
parentdd55b65843a8d8d1f2c448b7eb0732ffdd2601ce
Pure storage removal: Adjust nativecomp code

* lisp/emacs-lisp/comp.el (comp-curr-allocation-class, comp-ctxt)
(comp--emit-for-top-level, comp--emit-lambda-for-top-level)
(comp--finalize-relocs): Remove 'd-impure' allocation class.
* src/comp.c (PURE_RELOC_SYM, DATA_RELOC_IMPURE_SYM)
(TEXT_DATA_RELOC_IMPURE_SYM): Remove definitions.
(comp_t): Remove 'pure_ptr', 'check_impure', 'data_relocs_impure',
'd_impure_idx'.
(helper_link_table): Remove 'pure_write_error'.
(obj_to_reloc): Adjust to removal of 'data_relocs_impure'.
(emit_PURE_P): Remove function.
(declare_imported_data, declare_runtime_imported_funcs)
(emit_ctxt_code): Adjust to removed fields.
(define_setcar_setcdr): Don't call 'CHECK_IMPURE'.
(define_CHECK_IMPURE): Remove function.
(Fcomp__compile_ctxt_to_file0, check_comp_unit_relocs, load_comp_unit)
(Fcomp__register_lambda): Adjust to removed allocation class 'd-impure'.
(syms_of_comp): Don't define 'd-impure'.
* src/comp.h (struct Lisp_Native_Comp_Unit): Drop support for allocation
class 'd-impure'.
* src/lisp.h (allocate_native_comp_unit):
* src/pdumper.c (dump_do_dump_relocation): Adjust to struct change.

(cherry picked from commit bd2b59f07337c4f5980666875207bf877634b1b3)
lisp/emacs-lisp/comp.el
src/comp.c
src/comp.h
src/lisp.h
src/pdumper.c