X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcold%2Fdefun-load-or-cload-xcompiler.lisp;h=8d1d526e4bc26105f4765869c663d44efbeb60f7;hb=6a9bbe6f36179cee92001a1f9ed5ff38be512644;hp=2a178e0a9bea19af9db9a7944aeab2b38fa5eabe;hpb=7dd568fb64927be78556ac27f1f0dc60e79cf942;p=sbcl.git diff --git a/src/cold/defun-load-or-cload-xcompiler.lisp b/src/cold/defun-load-or-cload-xcompiler.lisp index 2a178e0..8d1d526 100644 --- a/src/cold/defun-load-or-cload-xcompiler.lisp +++ b/src/cold/defun-load-or-cload-xcompiler.lisp @@ -13,7 +13,7 @@ ;;; 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 @@ -90,8 +90,16 @@ ;; 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*" @@ -104,14 +112,17 @@ "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" @@ -119,10 +130,24 @@ "STRUCTURE-CLASS" "SUBTYPEP" "TYPE-OF" "TYPEP" + "UPGRADED-ARRAY-ELEMENT-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. @@ -134,13 +159,10 @@ ;; 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 @@ -151,7 +173,6 @@ ;; (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))