diff options
| author | Andrea Corallo | 2019-09-08 15:55:23 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:37:45 +0100 |
| commit | 59a428ed6ccd7ee41e847b1d63889845fae7ebd5 (patch) | |
| tree | f7513bd190ca9ad10a7e389cc12d8fae3df46306 | |
| parent | 314f9fcf6cb8a6f513022a40ee384ff0e4ca513a (diff) | |
| download | emacs-59a428ed6ccd7ee41e847b1d63889845fae7ebd5.tar.gz emacs-59a428ed6ccd7ee41e847b1d63889845fae7ebd5.zip | |
fix single function compilation
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/comp.el | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index f82993956b7..77cd408ce97 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -565,7 +565,7 @@ Each element is (INDEX . VALUE)") | |||
| 565 | 565 | ||
| 566 | ;; These are use by comp.el to spill data out of here | 566 | ;; These are use by comp.el to spill data out of here |
| 567 | (defvar byte-native-compiling nil) | 567 | (defvar byte-native-compiling nil) |
| 568 | (defvar byte-last-lap nil) | 568 | (defvar byte-to-native-last-lap nil) |
| 569 | (defvar byte-to-native-output nil) | 569 | (defvar byte-to-native-output nil) |
| 570 | (defvar byte-to-native-top-level-forms nil) | 570 | (defvar byte-to-native-top-level-forms nil) |
| 571 | 571 | ||
| @@ -2274,7 +2274,7 @@ list that represents a doc string reference. | |||
| 2274 | `defvaralias', `autoload' and `custom-declare-variable' need that." | 2274 | `defvaralias', `autoload' and `custom-declare-variable' need that." |
| 2275 | (when byte-native-compiling | 2275 | (when byte-native-compiling |
| 2276 | ;; Spill output for the native compiler here | 2276 | ;; Spill output for the native compiler here |
| 2277 | (push (list name byte-last-lap (apply #'vector form)) byte-to-native-output)) | 2277 | (push (list name byte-to-native-last-lap (apply #'vector form)) byte-to-native-output)) |
| 2278 | ;; We need to examine byte-compile-dynamic-docstrings | 2278 | ;; We need to examine byte-compile-dynamic-docstrings |
| 2279 | ;; in the input buffer (now current), not in the output buffer. | 2279 | ;; in the input buffer (now current), not in the output buffer. |
| 2280 | (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) | 2280 | (let ((dynamic-docstrings byte-compile-dynamic-docstrings)) |
| @@ -3129,7 +3129,7 @@ for symbols generated by the byte compiler itself." | |||
| 3129 | byte-compile-vector byte-compile-maxdepth))) | 3129 | byte-compile-vector byte-compile-maxdepth))) |
| 3130 | (when byte-native-compiling | 3130 | (when byte-native-compiling |
| 3131 | ;; Spill output for the native compiler here | 3131 | ;; Spill output for the native compiler here |
| 3132 | (setq byte-last-lap byte-compile-output)) | 3132 | (setq byte-to-native-last-lap byte-compile-output)) |
| 3133 | out)) | 3133 | out)) |
| 3134 | ;; it's a trivial function | 3134 | ;; it's a trivial function |
| 3135 | ((cdr body) (cons 'progn (nreverse body))) | 3135 | ((cdr body) (cons 'progn (nreverse body))) |
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el index 39f00c57921..2e98560e8f4 100644 --- a/lisp/emacs-lisp/comp.el +++ b/lisp/emacs-lisp/comp.el | |||
| @@ -270,11 +270,11 @@ Put PREFIX in front of it." | |||
| 270 | (setf (comp-func-byte-func func) | 270 | (setf (comp-func-byte-func func) |
| 271 | (byte-compile (comp-func-symbol-name func))) | 271 | (byte-compile (comp-func-symbol-name func))) |
| 272 | (comp-within-log-buff | 272 | (comp-within-log-buff |
| 273 | (cl-prettyprint byte-to-native-lap-output)) | 273 | (cl-prettyprint byte-to-native-last-lap)) |
| 274 | (let ((lambda-list (aref (comp-func-byte-func func) 0))) | 274 | (let ((lambda-list (aref (comp-func-byte-func func) 0))) |
| 275 | (setf (comp-func-args func) | 275 | (setf (comp-func-args func) |
| 276 | (comp-decrypt-lambda-list lambda-list))) | 276 | (comp-decrypt-lambda-list lambda-list))) |
| 277 | (setf (comp-func-lap func) (car byte-to-native-lap-output)) | 277 | (setf (comp-func-lap func) byte-to-native-last-lap) |
| 278 | (setf (comp-func-frame-size func) (aref (comp-func-byte-func func) 3)) | 278 | (setf (comp-func-frame-size func) (aref (comp-func-byte-func func) 3)) |
| 279 | func)) | 279 | func)) |
| 280 | 280 | ||
| @@ -306,7 +306,7 @@ Put PREFIX in front of it." | |||
| 306 | If INPUT is a symbol this is the function-name to be compiled. | 306 | If INPUT is a symbol this is the function-name to be compiled. |
| 307 | If INPUT is a string this is the file path to be compiled." | 307 | If INPUT is a string this is the file path to be compiled." |
| 308 | (let ((byte-native-compiling t) | 308 | (let ((byte-native-compiling t) |
| 309 | (byte-last-lap nil) | 309 | (byte-to-native-last-lap nil) |
| 310 | (byte-to-native-output ()) | 310 | (byte-to-native-output ()) |
| 311 | (byte-to-native-top-level-forms ())) | 311 | (byte-to-native-top-level-forms ())) |
| 312 | (cl-typecase input | 312 | (cl-typecase input |