Revert "Update bytecomp-revert.patch"

This reverts commit 1d5a4b9d76.
This commit is contained in:
Brian Leung 2023-12-23 16:42:32 -08:00
parent dbd5468d43
commit 0dfd7c9bdd
No known key found for this signature in database
GPG key ID: 2D86D6A94C8BB3B1

View file

@ -1,8 +1,8 @@
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 6c5051d70c4..be079346911 100644
index ac040799a22..42b733b0830 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -3570,8 +3570,6 @@ byte-compile-form
@@ -3521,8 +3521,6 @@ byte-compile-form
(setq form (cons 'progn (cdr form)))
(setq handler #'byte-compile-progn))
((and (or sef (function-get (car form) 'important-return-value))
@ -11,6 +11,20 @@ index 6c5051d70c4..be079346911 100644
(byte-compile-warning-enabled-p
'ignored-return-value (car form)))
(byte-compile-warn-x
--
2.42.0
@@ -4464,8 +4462,11 @@ byte-compile-goto-if
(defun byte-compile-ignore (form)
(dolist (arg (cdr form))
- ;; Compile each argument for-effect but suppress unused-value warnings.
- (byte-compile-form arg 'for-effect-no-warn))
+ ;; Compile args for value (to avoid warnings about unused values),
+ ;; emit a discard after each, and trust the LAP peephole optimiser
+ ;; to annihilate useless ops.
+ (byte-compile-form arg)
+ (byte-compile-discard))
(byte-compile-form nil))
;; Return the list of items in CONDITION-PARAM that match PRED-LIST.
--
2.40.1