;;; cross-compilation host Common Lisp.
(defun load-or-cload-xcompiler (load-or-cload-stem)
- (format t "~&/entering LOAD-OR-CLOAD-XCOMPILER~%") ; REMOVEME
+ (declare (type function load-or-cload-stem))
;; The running-in-the-host-Lisp Python cross-compiler defines its
;; own versions of a number of functions which should not overwrite
;; everything else which needs a separate
;; existence in xc and target
+ "BOOLE"
+ "BOOLE-CLR" "BOOLE-SET" "BOOLE-1" "BOOLE-2"
+ "BOOLE-C1" "BOOLE-C2" "BOOLE-AND" "BOOLE-IOR"
+ "BOOLE-XOR" "BOOLE-EQV" "BOOLE-NAND" "BOOLE-NOR"
+ "BOOLE-ANDC1" "BOOLE-ANDC2" "BOOLE-ORC1" "BOOLE-ORC2"
"BUILT-IN-CLASS"
+ "BYTE" "BYTE-POSITION" "BYTE-SIZE"
+ "CHAR-CODE"
"CLASS" "CLASS-NAME" "CLASS-OF"
+ "CODE-CHAR"
"COMPILE-FILE"
"COMPILE-FILE-PATHNAME"
"*COMPILE-FILE-PATHNAME*"
"DEFINE-MODIFY-MACRO"
"DEFINE-SETF-EXPANDER"
"DEFMACRO" "DEFSETF" "DEFSTRUCT" "DEFTYPE"
+ "DEPOSIT-FIELD" "DPB"
"FBOUNDP" "FDEFINITION" "FMAKUNBOUND"
"FIND-CLASS"
"GET-SETF-EXPANSION"
- "LAMBDA-LIST-KEYWORDS"
+ "LDB" "LDB-TEST"
"LISP-IMPLEMENTATION-TYPE" "LISP-IMPLEMENTATION-VERSION"
"MACRO-FUNCTION"
"MACROEXPAND" "MACROEXPAND-1" "*MACROEXPAND-HOOK*"
"MAKE-LOAD-FORM"
+ "MAKE-LOAD-FORM-SAVING-SLOTS"
+ "MASK-FIELD"
"PACKAGE" "PACKAGEP"
"PROCLAIM"
"SPECIAL-OPERATOR-P"
"STRUCTURE-CLASS"
"SUBTYPEP"
"TYPE-OF" "TYPEP"
+ "UPGRADED-ARRAY-ELEMENT-TYPE"
+ "UPGRADED-COMPLEX-PART-TYPE"
"WITH-COMPILATION-UNIT"))
(export (intern name package-name) package-name)))
-
- (format t "~&/made SB-XC~%") ; REMOVEME
+ ;; don't watch:
+ (dolist (package (list-all-packages))
+ (when (= (mismatch (package-name package) "SB!") 3)
+ (shadowing-import
+ (mapcar (lambda (name) (find-symbol name "SB-XC"))
+ '("BYTE" "BYTE-POSITION" "BYTE-SIZE"
+ "DPB" "LDB" "LDB-TEST"
+ "DEPOSIT-FIELD" "MASK-FIELD"
+
+ "BOOLE"
+ "BOOLE-CLR" "BOOLE-SET" "BOOLE-1" "BOOLE-2"
+ "BOOLE-C1" "BOOLE-C2" "BOOLE-AND" "BOOLE-IOR"
+ "BOOLE-XOR" "BOOLE-EQV" "BOOLE-NAND" "BOOLE-NOR"
+ "BOOLE-ANDC1" "BOOLE-ANDC2" "BOOLE-ORC1" "BOOLE-ORC2"))
+ package)))
;; Build a version of Python to run in the host Common Lisp, to be
;; used only in cross-compilation.
;; order to make the compiler aware of the definitions of assembly
;; routines.
(do-stems-and-flags (stem flags)
- (format t "~&/STEM=~S FLAGS=~S~%" stem flags) ; REMOVEME
(unless (find :not-host flags)
- (format t "~&/FUNCALLing ~S~%" load-or-cload-stem) ; REMOVEME
(funcall load-or-cload-stem
stem
:ignore-failure-p (find :ignore-failure-p flags))
- (format t "~&/back from FUNCALL~%") ; REMOVEME
#!+sb-show (warn-when-cl-snapshot-diff *cl-snapshot*)))
;; If the cross-compilation host is SBCL itself, we can use the
;; (in the ordinary build procedure anyway) essentially everything
;; which is reachable at this point will remain reachable for the
;; entire run.
- (format t "~&/doing PURIFY~%") ; REMOVEME
#+sbcl (sb-ext:purify)
(values))