mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
Merge branch 'master' into scratch/correct-warning-pos
This commit is contained in:
commit
2128cd8c08
3085 changed files with 131927 additions and 16782 deletions
|
|
@ -1,6 +1,6 @@
|
|||
;;; comp.el --- compilation of Lisp code into native code -*- lexical-binding: t -*-
|
||||
|
||||
;; Copyright (C) 2019-2021 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2019-2022 Free Software Foundation, Inc.
|
||||
|
||||
;; Author: Andrea Corallo <akrl@sdf.com>
|
||||
;; Keywords: lisp
|
||||
|
|
@ -1181,7 +1181,9 @@ clashes."
|
|||
for i across orig-name
|
||||
for byte = (format "%x" i)
|
||||
do (aset str j (aref byte 0))
|
||||
(aset str (1+ j) (aref byte 1))
|
||||
(aset str (1+ j) (if (length> byte 1)
|
||||
(aref byte 1)
|
||||
?\_))
|
||||
finally return str))
|
||||
(human-readable (string-replace
|
||||
"-" "_" orig-name))
|
||||
|
|
@ -3084,13 +3086,6 @@ Forward propagate immediate involed in assignments." ; FIXME: Typo. Involved or
|
|||
(`(setimm ,lval ,v)
|
||||
(setf (comp-cstr-imm lval) v))))))
|
||||
|
||||
(defun comp-mvar-propagate (lval rval)
|
||||
"Propagate into LVAL properties of RVAL."
|
||||
(setf (comp-mvar-typeset lval) (comp-mvar-typeset rval)
|
||||
(comp-mvar-valset lval) (comp-mvar-valset rval)
|
||||
(comp-mvar-range lval) (comp-mvar-range rval)
|
||||
(comp-mvar-neg lval) (comp-mvar-neg rval)))
|
||||
|
||||
(defun comp-function-foldable-p (f args)
|
||||
"Given function F called with ARGS, return non-nil when optimizable."
|
||||
(and (comp-function-pure-p f)
|
||||
|
|
@ -3140,10 +3135,7 @@ Fold the call in case."
|
|||
(when (comp-cstr-empty-p cstr)
|
||||
;; Store it to be rewritten as non local exit.
|
||||
(setf (comp-block-lap-non-ret-insn comp-block) insn))
|
||||
(setf (comp-mvar-range lval) (comp-cstr-range cstr)
|
||||
(comp-mvar-valset lval) (comp-cstr-valset cstr)
|
||||
(comp-mvar-typeset lval) (comp-cstr-typeset cstr)
|
||||
(comp-mvar-neg lval) (comp-cstr-neg cstr))))
|
||||
(comp-cstr-shallow-copy lval cstr)))
|
||||
(cl-case f
|
||||
(+ (comp-cstr-add lval args))
|
||||
(- (comp-cstr-sub lval args))
|
||||
|
|
@ -3161,9 +3153,9 @@ Fold the call in case."
|
|||
(let ((f (comp-func-name (gethash f (comp-ctxt-funcs-h comp-ctxt)))))
|
||||
(comp-fwprop-call insn lval f args)))
|
||||
(_
|
||||
(comp-mvar-propagate lval rval))))
|
||||
(comp-cstr-shallow-copy lval rval))))
|
||||
(`(assume ,lval ,(and (pred comp-mvar-p) rval))
|
||||
(comp-mvar-propagate lval rval))
|
||||
(comp-cstr-shallow-copy lval rval))
|
||||
(`(assume ,lval (,kind . ,operands))
|
||||
(cl-case kind
|
||||
(and
|
||||
|
|
@ -4223,7 +4215,8 @@ variable 'NATIVE_DISABLED' is set, only byte compile."
|
|||
(batch-native-compile)
|
||||
(pcase byte-to-native-output-file
|
||||
(`(,tempfile . ,target-file)
|
||||
(rename-file tempfile target-file t))))))
|
||||
(rename-file tempfile target-file t)))
|
||||
(setq command-line-args-left (cdr command-line-args-left)))))
|
||||
|
||||
;;;###autoload
|
||||
(defun native-compile-async (files &optional recursively load selector)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue