summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
Commit message (Collapse)AuthorAgeFilesLines
* Rename abnormal hook to comp-async-cu-done-functionsStefan Kangas2021-04-271-6/+5
| | | | | | * 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.
* * lisp/emacs-lisp/package.el: Fix use of `find-library-name`Stefan Monnier2021-04-262-17/+17
| | | | | | | | | | | | | That function caused a warning for a good reason. Don't just declare it and hope it will be available. (package--list-of-conflicts): Require `find-func` explicitly before declaring the function. Also don't ignore all errors but only the `file-error`s which will be emitted by `find-library-name` in normal circumstances. * lisp/emacs-lisp/find-func.el (find-library-name): Signal a `file-error` Instead of a generic `error`.
* * lisp/emacs-lisp/comp-cstr.el (comp-ctxt): Initialize it.Andrea Corallo2021-04-261-1/+1
|
* Rework where `comp-ctxt' is defined.Andrea Corallo2021-04-262-2/+4
| | | | | | | * 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.
* * lisp/emacs-lisp/comp.el: Make it loadable in vanilla builds (bug#48021).Andrea Corallo2021-04-261-0/+2
|
* * lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Fix string-search.Andrea Corallo2021-04-261-1/+1
|
* * lisp/emacs-lisp/comp.el (comp-accept-and-process-async-output): Fix regexp.Andrea Corallo2021-04-261-1/+1
|
* ; Add 2021 to copyright yearsGlenn Morris2021-04-252-4/+2
|
* * lisp/emacs-lisp/comp.el (no-native-compile): Minor doc fixes.Stefan Kangas2021-04-251-7/+6
|
* Merge branch 'feature/native-comp' into into trunkAndrea Corallo2021-04-2512-50/+5670
|\
| * * lisp/emacs-lisp/comp.el (comp-imm-equal-test): Style fix.Andrea Corallo2021-04-211-2/+1
| |
| * * lisp/emacs-lisp/comp.el (batch-byte-native-compile-for-bootstrap): Fix typo.Andrea Corallo2021-04-211-1/+1
| |
| * Fix native compiler string hash consing strategy (bug#47868)Andrea Corallo2021-04-211-34/+38
| | | | | | | | | | | | | | | | | | | | | | * 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.
| * Merge remote-tracking branch 'savannah/master' into native-compAndrea Corallo2021-04-1921-83/+110
| |\
| * | * lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.Ashish SHUKLA2021-04-161-0/+3
| | |
| * | Merge remote-tracking branch 'savannah/master' into native-compAndrea Corallo2021-04-1313-159/+167
| |\ \
| * | | * lisp/emacs-lisp/comp-cstr.el (comp-cstr-union-1-no-mem): (not null) => t.Andrea Corallo2021-04-131-1/+9
| | | |
| * | | * lisp/emacs-lisp/comp-cstr.el (comp-normalize-valset): Remove duplicates.Andrea Corallo2021-04-131-6/+8
| | | |
| * | | * Improve some docstring in comp.elAndrea Corallo2021-04-071-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--native-compile) (batch-native-compile, batch-byte-native-compile-for-bootstrap): Improve docstring.
| * | | Merge remote-tracking branch 'savannah/master' into native-compAndrea Corallo2021-04-052-3/+9
| |\ \ \
| * | | | * lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all .eln dirs.Andrea Corallo2021-04-041-2/+5
| | | | |
| * | | | Issue a warning when eln look-up fails due to missing .el source file.Andrea Corallo2021-04-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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'.
| * | | | * lisp/emacs-lisp/comp.el (comp-final): Clean-up temporary file.Andrea Corallo2021-03-311-1/+3
| | | | |
| * | | | Rework native compilation `comp-debug' (bug#46495)Andrea Corallo2021-03-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | | | * lisp/emacs-lisp/comp.el (comp-debug): Fix docstring.Andrea Corallo2021-03-311-2/+2
| | | | |
| * | | | Merge remote-tracking branch 'savannah/master' into native-compAndrea Corallo2021-03-257-133/+117
| |\ \ \ \
| * | | | | Improve two native compiler related docstrings.Andrea Corallo2021-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-eln-load-path-eff): Improve docstring. * src/comp.c (comp-eln-load-path): Likewise.
| * | | | | * lisp/emacs-lisp/comp.el (comp-lookup-eln): Add autoload cookie.Andrea Corallo2021-03-211-0/+1
| | | | | |
| * | | | | * lisp/emacs-lisp/comp.el (comp-lookup-eln): Add new function.Andrea Corallo2021-03-211-0/+14
| | | | | |
| * | | | | Revert "* lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all..."Andrea Corallo2021-03-211-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit be22cda7be9e77e67f224f6f07cca9dd44aaa078. Older binaries might still need those .eln if they where preloaded.
| * | | | | ; Remove two unnecessary quotesAndrea Corallo2021-03-212-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el (comp-cstr-=): Remove unnecessary quote. * lisp/emacs-lisp/comp.el (comp-compile-ctxt-to-file): Likewise.
| * | | | | * lisp/emacs-lisp/comp.el (comp-clean-up-stale-eln): Clean-up all .eln dirs.Andrea Corallo2021-03-211-2/+5
| | | | | |
| * | | | | Merge remote-tracking branch 'savannah/master' into native-compAndrea Corallo2021-03-197-75/+134
| |\ \ \ \ \
| * | | | | | Fix `no-byte-compile' native compilation interaction (bug#47169)Andrea Corallo2021-03-162-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-spill-lap-function): Throw no-native-compile when `byte-native-qualities' are null. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): No need to consider `no-byte-compile'.
| * | | | | | Have `no-byte-compile' implies also `no-native-compile'.Andrea Corallo2021-03-162-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (no-native-compile): Update doctring. * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): when `no-byte-compile' is set to non-nil it overrides this.
| * | | | | | * lisp/emacs-lisp/byte-opt.el: Fix native re-compilation (bug#47161).Eli Zaretskii2021-03-151-0/+1
| | | | | | |
| * | | | | | * lisp/emacs-lisp/bytecomp.el: Fix native re-compilation (bug#47161).Andrea Corallo2021-03-151-0/+1
| | | | | | |
| * | | | | | Prefer expand-file-name to concat in native-compilation codeEli Zaretskii2021-03-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-eln-load-path-eff): * src/comp.c (Fcomp_el_to_eln_filename) (eln_load_path_final_clean_up): Prefer expand-file-name to concat. (Bug#43725)
| * | | | | | Fix some entry in `comp-known-type-specifiers' (bug#46847)Andrea Corallo2021-03-141-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-known-type-specifiers): Some fix. * test/src/comp-tests.el (comp-tests-46670-1): Update test.
| * | | | | | * Fix circular dependecy when loading a modified comp.el (bug#47049)Andrea Corallo2021-03-121-14/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-subr-trampoline-install): Move it before other functional code.
| * | | | | | Merge remote-tracking branch 'savannah/master' into native-compAndrea Corallo2021-03-1211-69/+80
| |\ \ \ \ \ \
| * | | | | | | Implement `no-native-compile' (bug#46983)Andrea Corallo2021-03-122-43/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Capture `no-native-compile'. * lisp/emacs-lisp/comp.el (no-native-compile): Define new variable. (comp-spill-lap-function): Throw when `no-native-compile' was captured non-nil. (comp--native-compile): Catch `no-native-compile' if necessary and return nil in case.
| * | | | | | | * Fix error reporting for async native compilation (bug#47024)Andrea Corallo2021-03-121-5/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp--native-compile): During async compilation if we catch an error print it in a parsable way so we can report it to the user.
| * | | | | | | * Fix truncated warnings (bug#47024)Andrea Corallo2021-03-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el (comp-run-async-workers): Bind `warning-fill-column' to `most-positive-fixnum'.
| * | | | | | | Merge commit '9cbdf20316' into native-compAndrea Corallo2021-03-0925-715/+1129
| |\ \ \ \ \ \ \
| * | | | | | | | Use `length=' and family where possible in native comp codeAndrea Corallo2021-03-072-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el (comp-intersect-typesets) (comp-cstr-imm): Use Use `length=' and family where possible. * lisp/emacs-lisp/comp.el (comp-add-cond-cstrs-target-block) (comp-compute-dominator-frontiers) (batch-byte-native-compile-for-bootstrap): Likewise.
| * | | | | | | | * lisp/emacs-lisp/comp.el (w32-get-nproc): Suppress warning declaring it.Andrea Corallo2021-03-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For non Windows system.
| * | | | | | | | Allow for `comp-native-driver-options' to work as a file-local variable.Andrea Corallo2021-03-072-1/+8
| | | | | | | | |
| * | | | | | | | Use MS-Windows system APIs to get number of processorsEli Zaretskii2021-03-071-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp.el: Use 'w32-get-nproc' instead of the environment variable NUMBER_OF_PROCESSORS. * src/w32proc.c (Fw32_get_nproc): New primitive. * src/w32.c (w32_get_nproc): New function. (sample_system_load): Call w32_get_nproc to initialize the number of processors on this system. * src/w32.h (w32_get_nproc): Add prototype.
| * | | | | | | | Fix `comp-cstr-intersection-no-hashcons' for negated result cstrAndrea Corallo2021-03-061-13/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/emacs-lisp/comp-cstr.el (comp-cstr-intersection-no-hashcons): When negated and necessary relax dst to t. * test/src/comp-tests.el (comp-tests-type-spec-tests): Add a test.