]> git.eshelyaron.com Git - emacs.git/commitdiff
; * etc/DEBUG: Improve advice for debugging native-compilation (bug#67900).
authorEli Zaretskii <eliz@gnu.org>
Tue, 26 Dec 2023 12:49:50 +0000 (14:49 +0200)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Jan 2024 07:18:25 +0000 (08:18 +0100)
(cherry picked from commit c86b039dffc23354ae898f358eadbe5b58e67aa3)

etc/DEBUG

index 86bff45e7d97cad2f2e5b0fb1b04706ba71516f3..580083a9fcf7c677ac2babdbe93cfe48cc288ba1 100644 (file)
--- a/etc/DEBUG
+++ b/etc/DEBUG
@@ -605,7 +605,17 @@ recommend to follow the procedure below to try to identify the cause:
  . Reduce the problematic .el file to the minimum by bisection, and
    try identifying the function that causes the problem.
 
- . Reduce the problematic function to the minimal code that still
+ . Try natively compiling the problematic file with
+   'native-comp-speed' set to 1 or even zero.  If doing that solves
+   the problem, you can use
+
+     (declare (speed 1))
+
+   at the beginning of the body of suspected function(s) to change
+   native-comp-speed only for those functions -- this could help you
+   identify the function(s) which cause(s) the problem.
+
+ . Reduce the problematic function(s) to the minimal code that still
    reproduces the problem.
 
  . Study the problem's artifacts, like Lisp or C backtraces, to try