Andrea Corallo
a32e65b357
* Add `native-compile-target-directory' (bug#48743)
...
* lisp/emacs-lisp/comp.el (native-compile-target-directory): New
variable.
(comp-spill-lap-function): Make use of.
2021-06-01 18:12:20 +02:00
Andrea Corallo
c4b02dad9b
Rename batch-byte-native-compile-for-bootstrap (bug#48743)
...
* lisp/Makefile.in : Rename `batch-byte-native-compile-for-bootstrap'
-> `batch-byte+native-compile.
* lisp/emacs-lisp/bytecomp.el (byte+native-compile)
(byte-compile-file): Rename
`batch-byte-native-compile-for-bootstrap' ->
`batch-byte+native-compile + `byte-native-for-bootstrap' ->
`byte+native-compile'.
* lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final)
(batch-native-compile, batch-byte+native-compile): Likewise.
* lisp/emacs-lisp/bytecomp.el (byte+native-compile)
(byte-compile-file): Likewise.
* test/src/comp-tests.el (comp-tests-bootstrap): Rename
`byte-native-for-bootstrap' -> `byte+native-compile'.
2021-06-01 18:11:37 +02:00
Andrea Corallo
8992a45202
* Make *Async-native-compile-log* buffer read-only (bug#48763)
...
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Make
"*Async-native-compile-log*" read-only.
2021-05-31 20:52:45 +02:00
Basil L. Contovounesios
43fd13770a
Fix native-comp-async-report-warnings-errors :type
...
* doc/lispref/compile.texi (Native-Compilation Variables): Document
'silent' alternative of native-comp-async-report-warnings-errors.
* lisp/emacs-lisp/comp.el
(native-comp-async-report-warnings-errors): Fix quoting in
:type expression (bug#48586).
2021-05-22 13:22:29 +01:00
Eric Abrahamsen
e761e12498
Add a 'silent option for native-comp-async-report-warnings-errors
...
* lisp/emacs-lisp/comp.el (native-comp-async-report-warnings-errors):
Set to 'silent to log warnings, but not pop up the *Warnings* buffer.
* lisp/emacs-lisp/comp.el (comp-accept-and-process-async-output):
Check value.
2021-05-16 14:27:53 -07:00
Andrea Corallo
8bc91a6a3f
* Rename comp-deferred-compilation-deny-list
...
* lisp/emacs-lisp/comp.el (native-comp-deferred-compilation-deny-list)
(native-compile-async-skip-p): Rename
comp-deferred-compilation-deny-list ->
native-comp-deferred-compilation-deny-list.
2021-05-11 18:31:45 +02:00
Andrea Corallo
fbbcbed10e
Rename comp-eln-load-path → native-comp-eln-load-path
...
* src/comp.c (Fcomp_el_to_eln_filename): Rename comp-eln-load-path →
native-comp-eln-load-path.
* src/lread.c (maybe_swap_for_eln): Likewise.
* lisp/startup.el (native-comp-eln-load-path)
(normal-top-level): Likewise.
* lisp/emacs-lisp/comp.el (comp-spill-lap-function, comp-final)
(comp-eln-load-path-eff, comp-trampoline-compile)
(comp-clean-up-stale-eln, comp-run-async-workers)
(comp-lookup-eln, batch-byte-native-compile-for-bootstrap): Likewise.
2021-05-06 17:16:09 +02:00
Andrea Corallo
901ce56603
Rename comp-warning-on-missing-source
...
* src/lread.c (maybe_swap_for_eln): Rename
comp-warning-on-missing-source →
native-comp-warning-on-missing-source.
* src/comp.c (syms_of_comp): Likewise.
* lisp/emacs-lisp/comp.el (native-comp-warning-on-missing-source):
Likewise.
2021-05-06 17:16:09 +02:00
Andrea Corallo
8c429a42c4
Rename comp-native-driver-options → native-comp-driver-options
...
* src/comp.c (add_driver_options, syms_of_comp): Rename
comp-native-driver-options → native-comp-driver-options.
* lisp/emacs-lisp/comp.el (native-comp-driver-options)
(comp-ctxt, comp-spill-lap-function, comp-final)
(comp-run-async-workers): Likewise.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.
2021-05-06 17:16:08 +02:00
Andrea Corallo
419852a599
* Rename comp-async-query-on-exit → native-comp-async-query-on-exit
...
* lisp/emacs-lisp/comp.el (native-comp-async-query-on-exit)
(comp-run-async-workers): Rename comp-async-query-on-exit →
native-comp-async-query-on-exit.
2021-05-06 17:16:08 +02:00
Andrea Corallo
c90129c5e5
* Rename comp-async-report-warnings-errors
...
* lisp/emacs-lisp/comp.el (native-comp-async-report-warnings-errors)
(comp-accept-and-process-async-output): Rename
comp-async-report-warnings-errors →
native-comp-async-report-warnings-errors.
2021-05-06 17:16:08 +02:00
Andrea Corallo
4e01605efa
* Rename comp-async-env-modifier-form → native-comp-async-env-modifier-form
...
* lisp/emacs-lisp/comp.el (native-comp-async-env-modifier-form)
(comp-final, comp-run-async-workers): Rename
comp-async-env-modifier-form → native-comp-async-env-modifier-form.
2021-05-06 17:16:08 +02:00
Andrea Corallo
4e063bf8eb
* Rename comp-async-all-done-hook → native-comp-async-all-done-hook
...
* lisp/emacs-lisp/comp.el (native-comp-async-all-done-hook)
(comp-run-async-workers): Rename comp-async-all-done-hook →
native-comp-async-all-done-hook.
2021-05-06 17:16:08 +02:00
Andrea Corallo
e73186a446
* Rename comp-async-cu-done-functions → native-comp-async-cu-done-functions
...
* lisp/emacs-lisp/comp.el (native-comp-async-cu-done-functions)
(comp-run-async-workers): Rename comp-async-cu-done-functions →
native-comp-async-cu-done-functions.
2021-05-06 17:16:08 +02:00
Andrea Corallo
d8f84a1c00
* Rename comp-async-jobs-number → native-comp-async-jobs-number
...
* lisp/emacs-lisp/comp.el (native-comp-async-jobs-number)
(comp-effective-async-max-jobs, native--compile-async)
(native-compile-async): Rename comp-async-jobs-number →
native-comp-async-jobs-number.
2021-05-06 17:16:08 +02:00
Andrea Corallo
31ca1c3e81
Rename comp-never-optimize-functions → native-comp-never-optimize-functions
...
* lisp/emacs-lisp/nadvice.el (advice--add-function): Rename
comp-never-optimize-functions → native-comp-never-optimize-functions.
* lisp/emacs-lisp/comp.el (native-comp-never-optimize-functions)
(comp-subr-trampoline-install, comp-call-optim-form-call): Likewise.
2021-05-06 17:16:07 +02:00
Andrea Corallo
85b61c0c58
Rename comp-bootstrap-deny-list → native-comp-bootstrap-deny-list
...
* lisp/emacs-lisp/comp.el (native-comp-bootstrap-deny-list)
(batch-native-compile): Rename comp-bootstrap-deny-list →
native-comp-bootstrap-deny-list.
2021-05-06 17:16:07 +02:00
Andrea Corallo
6595295078
* Rename comp-always-compile → native-comp-always-compile
...
* lisp/emacs-lisp/comp.el (native-comp-always-compile)
(comp-run-async-workers): comp-always-compile →
native-comp-always-compile.
2021-05-06 17:16:07 +02:00
Andrea Corallo
6efd7885db
* Rename comp-verbose -> native-comp-verbose
...
* lisp/emacs-lisp/comp.el (native-comp-verbose, comp-log)
(comp-log-func, comp-final, comp-run-async-workers): Rename
comp-verbose -> native-comp-verbose.
2021-05-06 17:16:07 +02:00
Andrea Corallo
94c69eb1d7
Rename comp-debug -> native-comp-debug
...
* src/comp.c (emit_ctxt_code, syms_of_comp): Rename comp-debug ->
native-comp-debug.
* lisp/emacs-lisp/comp.el (native-comp-debug, comp-ctxt)
(comp-spill-lap-function, comp-run-async-workers): Likewise.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Likewise.
* test/src/comp-tests.el (comp-tests-bootstrap): Likewise.
2021-05-06 17:16:07 +02:00
Andrea Corallo
43f29696ad
Rename comp-speed -> native-comp-speed
...
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Rename
comp-speed -> native-comp-speed.
* lisp/emacs-lisp/comp.el (native-comp-speed, comp-ctxt, comp-func,
comp-spill-lap-function, comp-trampoline-compile,
comp-run-async-workers): Likewise.
* src/comp.c (emit_ctxt_code, load_comp_unit, syms_of_comp): Likewise.
* test/src/comp-tests.el (comp-tests-tco, comp-tests-fw-prop-1)
(comp-tests-check-ret-type-spec, comp-tests-pure): Likewise.
2021-05-06 17:16:07 +02:00
Andrea Corallo
643cc3fa14
* Rename comp-limple-mode -> native-comp-limple-mode
...
* lisp/emacs-lisp/comp.el (comp-limple-lock-keywords): Doc update.
(native-comp-limple-mode, comp-log-to-buffer): Rename comp-limple-mode
-> native-comp-limple-mode.
2021-05-06 17:16:06 +02:00
Andrea Corallo
40736357b8
Rename feature nativecomp' into
native-compile'
...
* test/src/comp-tests.el : Rename feature `nativecomp' into
`native-compile'.
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun): Likewise.
* src/comp.c (syms_of_comp): Likewise.
* lisp/startup.el (normal-top-level): Likewise.
* lisp/loadup.el: Likewise.
* lisp/help.el (help-function-arglist): Likewise.
* lisp/emacs-lisp/package.el (package--native-compile-async)
(package--delete-directory): Likewise.
* lisp/emacs-lisp/nadvice.el (advice--add-function): Likewise.
* lisp/emacs-lisp/comp.el (comp-ensure-native-compiler): Likewise.
* lisp/emacs-lisp/advice.el (ad-add-advice): Likewise.
2021-05-05 22:27:29 +02:00
Andrea Corallo
d6ddc97884
* Do not try to load unexistent eln file if async compilation was skipped
...
* lisp/emacs-lisp/comp.el (comp-run-async-workers): Don't try to
load if the eln file was not produced.
2021-05-04 21:46:39 +02:00
Stefan Kangas
d55d5358b2
; * lisp/emacs-lisp/comp.el: Fix typos. Add LocalWords.
2021-04-27 14:17:44 +02:00
Glenn Morris
40a1e94f4c
Doc fixes for comp.el
...
* lisp/emacs-lisp/comp.el (comp-deferred-compilation-deny-list)
(comp-bootstrap-deny-list, comp-pred-to-cstr, make-comp-mvar)
(comp-mvar-used-p, comp-async-compilation): Doc fixes.
2021-04-26 22:18:14 -07:00
Glenn Morris
b3b2cba5ca
Fix some custom types in comp.el
...
* lisp/emacs-lisp/comp.el (comp-deferred-compilation-deny-list)
(comp-bootstrap-deny-list, comp-never-optimize-functions)
(comp-async-env-modifier-form, comp-native-driver-options):
Fix :type (`list' on its own isn't even a valid type).
2021-04-26 22:09:46 -07:00
Stefan Kangas
e1541b5cb4
Rename abnormal hook to comp-async-cu-done-functions
...
* lisp/emacs-lisp/comp.el (comp-async-cu-done-functions): Rename
from 'comp-async-cu-done-hook' to reflect that it is an abnormal
hook. Doc fix and update single caller.
2021-04-27 03:37:43 +02:00
Andrea Corallo
edf42af2cc
Rework where `comp-ctxt' is defined.
...
* test/lisp/emacs-lisp/comp-cstr-tests.el (comp-ctxt): Remove
`comp-ctxt' definition.
* lisp/emacs-lisp/comp.el (comp-ctxt): Likewise.
* lisp/emacs-lisp/comp-cstr.el (comp-ctxt): Define it here.
2021-04-26 23:01:39 +02:00
Andrea Corallo
4396ef5a38
* lisp/emacs-lisp/comp.el: Make it loadable in vanilla builds (bug#48021).
2021-04-26 22:45:08 +02:00
Andrea Corallo
fbfb503012
* lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix string-search.
2021-04-26 22:32:05 +02:00
Andrea Corallo
58fc16063c
* lisp/emacs-lisp/comp.el (comp-accept-and-process-async-output): Fix regexp.
2021-04-26 16:00:03 +02:00
Glenn Morris
b7c22fab7d
; Add 2021 to copyright years
2021-04-25 17:24:48 -07:00
Stefan Kangas
ec2ccae3e6
* lisp/emacs-lisp/comp.el (no-native-compile): Minor doc fixes.
2021-04-25 20:47:44 +02:00
Andrea Corallo
606188a360
* lisp/emacs-lisp/comp.el (comp-imm-equal-test): Style fix.
2021-04-21 23:15:56 +02:00
Andrea Corallo
de16621b51
* lisp/emacs-lisp/comp.el (batch-byte-native-compile-for-bootstrap): Fix typo.
2021-04-21 17:36:59 +02:00
Andrea Corallo
f842816125
Fix native compiler string hash consing strategy (bug#47868)
...
* test/src/comp-tests.el (comp-test-47868-1): Add new test.
* test/src/comp-test-funcs.el (comp-test-47868-1-f)
(comp-test-47868-2-f): New functions.
* lisp/emacs-lisp/comp.el (comp-imm-equal-test): Define new hash
tanble test.
(comp-data-container): Use it.
(comp-final, comp-run-async-workers): have comp required before
reading dumped hashes so that `comp-imm-equal-test' is defined.
2021-04-21 17:36:59 +02:00
Ashish SHUKLA
f9c1008ced
* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.
2021-04-16 11:13:09 +02:00
Andrea Corallo
1f8d75160a
* Improve some docstring in comp.el
...
* lisp/emacs-lisp/comp.el (comp--native-compile)
(batch-native-compile, batch-byte-native-compile-for-bootstrap):
Improve docstring.
2021-04-07 17:33:35 +02:00
Andrea Corallo
1ad0ecea2b
* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all .eln dirs.
2021-04-04 22:51:24 +02:00
Andrea Corallo
dc393517ca
Issue a warning when eln look-up fails due to missing .el source file.
...
* lisp/emacs-lisp/comp.el (comp-warning-on-missing-source): New
customize.
* src/lread.c (maybe_swap_for_eln): Issue a warning when eln
look-up fails due to missing .el source file.
* src/comp.c (syms_of_comp): Define
'Qcomp_warning_on_missing_source'.
2021-04-01 21:49:38 +02:00
Andrea Corallo
8e524f4591
* lisp/emacs-lisp/comp.el (comp-final): Clean-up temporary file.
2021-03-31 20:38:32 +02:00
Andrea Corallo
53ca0d9844
Rework native compilation `comp-debug' (bug#46495)
...
* lisp/emacs-lisp/comp.el (comp-debug): Update docstring and
move default on Windows systems from 0 to 1.
* src/comp.c (Fcomp__compile_ctxt_to_file): Tweak debug
levels.
2021-03-31 20:25:08 +02:00
Andrea Corallo
aa159bf696
* lisp/emacs-lisp/comp.el (comp-debug): Fix docstring.
2021-03-31 10:24:55 +02:00
Andrea Corallo
92914ade6d
Improve two native compiler related docstrings.
...
* lisp/emacs-lisp/comp.el (comp-eln-load-path-eff): Improve docstring.
* src/comp.c (comp-eln-load-path): Likewise.
2021-03-24 17:02:40 +01:00
Andrea Corallo
7ba816ee1c
* lisp/emacs-lisp/comp.el (comp-lookup-eln): Add autoload cookie.
2021-03-21 21:55:13 +01:00
Andrea Corallo
6351953dcd
* lisp/emacs-lisp/comp.el (comp-lookup-eln): Add new function.
2021-03-21 21:50:22 +01:00
Andrea Corallo
d0280ce1b1
Revert "* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all..."
...
This reverts commit be22cda7be
.
Older binaries might still need those .eln if they where preloaded.
2021-03-21 15:34:38 +01:00
Andrea Corallo
08682ccc31
; Remove two unnecessary quotes
...
* lisp/emacs-lisp/comp-cstr.el (comp-cstr-=): Remove unnecessary
quote.
* lisp/emacs-lisp/comp.el (comp-compile-ctxt-to-file): Likewise.
2021-03-21 09:28:25 +01:00
Andrea Corallo
be22cda7be
* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all .eln dirs.
2021-03-21 09:15:25 +01:00