diff options
| author | Andrea Corallo | 2020-08-02 17:01:42 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-08-02 17:51:44 +0200 |
| commit | 80d7f710f2fab902e46aa3fddb8e1c1795420af3 (patch) | |
| tree | bed3aa5d3f1460a0728d077eba0471c2178a83ff | |
| parent | e5095f0fd31764a729b4afebf8b5e868a09eef28 (diff) | |
| download | emacs-80d7f710f2fab902e46aa3fddb8e1c1795420af3.tar.gz emacs-80d7f710f2fab902e46aa3fddb8e1c1795420af3.zip | |
* Fix defsubst missing inline Bug#42664
* lisp/emacs-lisp/byte-run.el (defsubst): Do not native compile
defsubsts to have them always effective.
| -rw-r--r-- | lisp/emacs-lisp/byte-run.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 4c1dce264a7..539846683f0 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -364,7 +364,12 @@ You don't need this. (See bytecomp.el commentary for more details.) | |||
| 364 | '(nil byte-compile-inline-expand)) | 364 | '(nil byte-compile-inline-expand)) |
| 365 | (error "`%s' is a primitive" name)) | 365 | (error "`%s' is a primitive" name)) |
| 366 | `(prog1 | 366 | `(prog1 |
| 367 | (defun ,name ,arglist ,@body) | 367 | (defun ,name ,arglist |
| 368 | ;; Never native-compile defsubsts as we need the byte | ||
| 369 | ;; definition in `byte-compile-unfold-bcf' to perform the | ||
| 370 | ;; inlining (Bug#42664). | ||
| 371 | (declare (speed -1)) | ||
| 372 | ,@body) | ||
| 368 | (eval-and-compile | 373 | (eval-and-compile |
| 369 | (put ',name 'byte-optimizer 'byte-compile-inline-expand)))) | 374 | (put ',name 'byte-optimizer 'byte-compile-inline-expand)))) |
| 370 | 375 | ||