summaryrefslogtreecommitdiff
path: root/emacs/fix-compile.patch
diff options
context:
space:
mode:
authorsrv <enmanuel.saravia.externo@pandero.com.pe>2025-05-08 16:11:09 -0500
committersrv <enmanuel.saravia.externo@pandero.com.pe>2025-05-08 16:11:09 -0500
commit342ac6fb859381069c7bad8c9bc4a0dfa3a40d6f (patch)
treeaefd83f1665ff62b38aeed32d4c74b60ec9e5afb /emacs/fix-compile.patch
parentb7302c99914f165776b48f25b7ed12d630b910a4 (diff)
add emacs 30 and linux-libre 6.14.5
Diffstat (limited to 'emacs/fix-compile.patch')
-rw-r--r--emacs/fix-compile.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/emacs/fix-compile.patch b/emacs/fix-compile.patch
new file mode 100644
index 0000000..40bfb31
--- /dev/null
+++ b/emacs/fix-compile.patch
@@ -0,0 +1,31 @@
+From 53a5dada413662389a17c551a00d215e51f5049f Mon Sep 17 00:00:00 2001
+From: Pip Cet <pipcet@protonmail.com>
+Date: Mon, 17 Feb 2025 15:21:16 +0000
+Subject: [PATCH] Fix compilation errors due to insufficient compiler safety
+ (bug#63288)
+
+The default safety level is 1. Restoring the default safety level to
+1 after it was temporarily 0 should reset byte-compile-delete-errors
+to nil, its default level. Failing to do that resulted in
+miscompilation of code in highly-parallel builds.
+
+* lisp/emacs-lisp/cl-macs.el (cl--do-proclaim): Change
+'byte-compile-delete-errors' to become t only at 'safety' level 0, not
+levels 1 or 2.
+---
+ lisp/emacs-lisp/cl-macs.el | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
+index eef69e6899ea..e73edbadaf28 100644
+--- a/lisp/emacs-lisp/cl-macs.el
++++ b/lisp/emacs-lisp/cl-macs.el
+@@ -2701,7 +2701,7 @@ Example:
+ (let ((speed (assq (nth 1 (assq 'speed (cdr spec)))
+ '((0 nil) (1 t) (2 t) (3 t))))
+ (safety (assq (nth 1 (assq 'safety (cdr spec)))
+- '((0 t) (1 t) (2 t) (3 nil)))))
++ '((0 t) (1 nil) (2 nil) (3 nil)))))
+ (if speed (setq cl--optimize-speed (car speed)
+ byte-optimize (nth 1 speed)))
+ (if safety (setq cl--optimize-safety (car safety)