]> git.eshelyaron.com Git - emacs.git/commit
Allow for native compilation qualities to be specified per input file
authorAndrea Corallo <akrl@sdf.org>
Fri, 6 Nov 2020 23:13:01 +0000 (00:13 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sat, 7 Nov 2020 10:45:55 +0000 (11:45 +0100)
commit4a69e953f34d504809b94a0c4634444d34100039
tree642550eb4114f1e65849c7aea29d2b026a324349
parentacf101c63644da5587822afbea1b186d91ff3348
Allow for native compilation qualities to be specified per input file

* lisp/emacs-lisp/bytecomp.el (byte-native-qualities): Define
variable.
(byte-compile-from-buffer): Spill compilation qualities.
* lisp/emacs-lisp/comp.el (comp-speed, comp-debug): Make
them file local variables.
(comp-ctxt): Add `speed' and `debug' slots.
(comp-spill-speed, comp-spill-lap-function): Make use of these.
(comp-spill-lap-function): Spill qualities from
`byte-native-qualities'.
(comp-limplify-top-level): Do not use `comp-speed' but ctxt value
unstead.
(comp-final): Do not propagate qualities as they are already
in the `comp-ctxt'.
(comp--native-compile): Close on `byte-native-qualities'.
* src/comp.c (comp_t): Add 'speed' and 'debug' fields.
(emit_comment, emit_mvar_rval, emit_static_object)
(emit_ctxt_code, Fcomp__init_ctxt): Use these instead of the
global variables.
(Fcomp__compile_ctxt_to_file): Set comp.speed and comp.debug and
use them.
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/comp.el
src/comp.c