Skip to content

Commit 10ab6aa

Browse files
committed
* make-host-2.lisp (proclaim-target-optimization): disabled
alien-funcall-saves-fp-and-pc in my branch (by SB-GC-SAFEPOINT feature); explanation added.
1 parent 59fde82 commit 10ab6aa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: make-host-2.lisp

+8-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@
2929
;; never insert stepper conditions
3030
(sb!c:insert-step-conditions 0)
3131
;; save FP and PC for alien calls -- or not
32-
(sb!c:alien-funcall-saves-fp-and-pc #!+x86 3 #!-x86 0)))))
32+
;;
33+
;; (AAK) disabled saving for sb-gc-safepoint: here we got a frame chain
34+
;; independent on C's EBP, that is supposed to be good enough for
35+
;; debugging, at least until C-calling-C-directly is interesting in some
36+
;; way. If it turns out /not/ to be good enough, I hope to be among the
37+
;; first who will notice.
38+
(sb!c:alien-funcall-saves-fp-and-pc #!+(and x86 (not sb-gc-safepoint)) 3
39+
#!-(and x86 (not sb-gc-safepoint)) 0)))))
3340
(compile 'proclaim-target-optimization)
3441

3542
(defun in-target-cross-compilation-mode (fun)

0 commit comments

Comments
 (0)