4 ;;;; This software is part of the SBCL system. See the README file for
7 ;;;; This software is derived from the CMU CL system, which was
8 ;;;; written at Carnegie Mellon University and released into the
9 ;;;; public domain. The software is in the public domain and is
10 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
11 ;;;; files for more information.
13 ;;; This is a linear ordering of system sources which works both to
14 ;;; compile/load the cross-compiler under the host Common Lisp and to
15 ;;; cross-compile the compiler into the under-construction target
18 ;;; Of course, it'd be very nice to have this be a dependency DAG
19 ;;; instead, so that we could do automated incremental recompilation.
20 ;;; But the dependencies are varied and subtle, and it'd be extremely
21 ;;; difficult to extract them automatically, and it'd be extremely
22 ;;; tedious and error-prone to extract them manually, so we don't
23 ;;; extract them. (It would be nice to fix this someday. The most
24 ;;; feasible approach that I can think of would be to make the
25 ;;; dependencies work on a package level, not an individual file
26 ;;; level. Doing it at the package level would make the granularity
27 ;;; coarse enough that it would probably be pretty easy to maintain
28 ;;; the dependency information manually, and the brittleness of the
29 ;;; package system would help make most violations of the declared
30 ;;; dependencies obvious at build time. -- WHN 20000803
32 ;;; FIXME: Perhaps now that a significant number of files are built
33 ;;; in warm load instead of cold load, this file should now be called
34 ;;; cold-stems-and-flags.lisp-expr? Also, perhaps this file should move
35 ;;; into the src/cold directory?
37 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
40 ;; This comes early because it's useful for debugging everywhere.
43 ;; This comes early because the cross-compilation host's backquote logic
44 ;; expand into something which can't be executed on the target Lisp (e.g.
45 ;; in CMU CL where it expands into internal functions like BACKQ-LIST), and
46 ;; by replacing the host backquote logic with our own as early as possible,
47 ;; we minimize the chance of any forms referring to host Lisp internal
48 ;; functions leaking into target Lisp code.
51 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
52 ;; various DEFSETFs and/or other DEFMACROish things, defined as early as
53 ;; possible so we don't need to fiddle with any subtleties of defining them
54 ;; before any possible use
56 ;; KLUDGE: It would be nice to reimplement most or all of these as
57 ;; functions (possibly inlined functions) so that we wouldn't need to
58 ;; worry so much about forcing them all to be defined before any possible
59 ;; use. It might be pretty tedious, though, working through any
60 ;; transforms and translators and optimizers and so forth to make sure
61 ;; that they can handle the change. -- WHN 19990919
64 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
65 ;;; cross-compiler-only replacements for stuff which in target Lisp would be
66 ;;; supplied by basic machinery
68 ("src/code/cross-misc" :not-target)
69 ("src/code/cross-float" :not-target)
70 ("src/code/cross-io" :not-target)
71 ("src/code/cross-sap" :not-target)
73 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
74 ;;; stuff needed early both in cross-compilation host and in target Lisp
77 ("src/code/early-defbangmethod")
79 ("src/code/defbangtype")
80 ("src/code/defbangmacro")
82 ("src/code/primordial-extensions")
84 ;; for various constants e.g. SB!VM:*TARGET-MOST-POSITIVE-FIXNUM* and
85 ;; SB!VM:LOWTAG-BITS, needed by "early-objdef" and others
86 ("src/compiler/generic/early-vm")
87 ("src/compiler/generic/early-objdef")
88 ("src/compiler/target/parms")
89 ("src/code/early-array") ; needs "early-vm" numbers
91 ("src/code/parse-body") ; on host for PARSE-BODY
92 ("src/code/parse-defmacro") ; on host for PARSE-DEFMACRO
93 ("src/code/extensions") ; on host for COLLECT, SYMBOLICATE, etc.
94 ("src/compiler/deftype") ; on host for SB!XC:DEFTYPE
95 ("src/code/early-alieneval") ; for vars needed both at build and run time
97 ("src/code/specializable-array")
100 ("src/code/early-fasl")
102 ;; mostly needed by stuff from comcom, but also used by "x86-vm"
103 ("src/code/debug-var-io")
105 ("src/code/cold-init-helper-macros")
107 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
108 ;;; basic machinery for the target Lisp. Note that although most of these
109 ;;; files are flagged :NOT-HOST, a few might not be.
111 ("src/code/target-defbangmethod" :not-host)
113 ("src/code/early-print" :not-host)
114 ("src/code/early-pprint" :not-host)
115 ("src/code/early-impl" :not-host)
117 ("src/code/target-extensions" :not-host)
119 ("src/code/early-defstructs" :not-host) ; gotta-be-first DEFSTRUCTs
121 ("src/code/defbangstruct")
123 ;; This needs DEF!STRUCT, and is itself needed early so that structure
124 ;; accessors and inline functions defined here can be compiled inline
125 ;; later. (Avoiding full calls not only increases efficiency, but also
126 ;; avoids some cold init issues involving full calls to structure
128 ("src/code/type-class")
130 ("src/code/pcounter" :not-host)
132 ("src/code/lisp-stream" :not-host)
134 ("src/code/sysmacs" :not-host)
136 ;; "assembly/assemfile" was here in the sequence inherited from
137 ;; CMU CL worldcom.lisp, but also appears later in the sequence
138 ;; inherited from CMU CL comcom.lisp. We shouldn't need two versions,
139 ;; so I've deleted the one here. -- WHN 19990620
141 ;; FIXME: There are lots of "maybe" notes in this file, e.g.
142 ;; "maybe should be :BYTE-COMPILE T". Once the system is stable,
145 ("src/code/early-target-error" :not-host) ; maybe should be :BYTE-COMPILE T
146 ;; FIXME: maybe should be called "target-error", with "late-target-error"
147 ;; called "condition"
149 ;; a comment from classic CMU CL:
150 ;; "These guys can supposedly come in any order, but not really.
151 ;; Some are put at the end so that macros don't run interpreted
153 ;; Dunno exactly what this meant or whether it still holds. -- WHN 19990803
154 ;; FIXME: more informative and up-to-date comment?
155 ("src/code/globals" :not-host)
156 ("src/code/kernel" :not-host)
157 ("src/code/toplevel" :not-host)
158 ("src/code/cold-error" :not-host)
159 ("src/code/fdefinition" :not-host)
160 ;; FIXME: Figure out some way to make the compiler macro for INFO
161 ;; available for compilation of "code/fdefinition".
163 ;; In classic CMU CL, code/type was here. I've since split that into
164 ;; lots of smaller pieces, some of which are here and some of which
165 ;; are handled later in the sequence, when the cross-compiler is
166 ;; built. -- WHN 19990620
167 ("src/code/target-type" :not-host)
169 ("src/code/pred" :not-host)
171 ("src/code/target-alieneval" :not-host)
172 ("src/code/target-c-call" :not-host)
173 ("src/code/target-allocate" :not-host)
175 ;; This needs DEF-ALIEN-ROUTINE from target-alieneval.
176 ("src/code/misc-aliens" :not-host)
178 ("src/code/array" :not-host)
179 ("src/code/target-sxhash" :not-host)
181 ("src/code/list" :not-host)
182 ("src/code/seq" :not-host) ; "code/seq" should come after "code/list".
183 ("src/code/coerce" :not-host)
185 ("src/code/string" :not-host)
186 ("src/code/mipsstrops" :not-host)
188 ;; "src/code/unix.lisp" needs this. It's generated automatically by
189 ;; grovel_headers.c, i.e. it's not in CVS.
190 ("output/stuff-groveled-from-headers" :not-host)
192 ("src/code/unix" :not-host)
194 #!+mach ("src/code/mach" :not-host)
195 #!+mach ("src/code/mach-os" :not-host)
196 #!+sunos ("src/code/sunos-os" :not-host)
197 #!+hpux ("src/code/hpux-os" :not-host)
198 #!+osf1 ("src/code/osf1-os" :not-host)
199 #!+irix ("src/code/irix-os" :not-host)
200 #!+bsd ("src/code/bsd-os" :not-host)
201 #!+linux ("src/code/linux-os" :not-host)
203 ;; KLUDGE: I'd prefer to have this done with a "code/target" softlink
204 ;; instead of a bunch of reader macros. -- WHN 19990308
205 #!+pmax ("src/code/pmax-vm" :not-host)
206 #!+(and sparc svr4) ("src/code/sparc-svr4-vm" :not-host)
207 #!+(and sparc (not svr4)) ("src/code/sparc-vm" :not-host)
208 #!+rt ("src/code/rt-vm" :not-host)
209 #!+hppa ("src/code/hppa-vm" :not-host)
210 #!+x86 ("src/code/x86-vm" :not-host)
211 #!+alpha ("src/code/alpha-vm" :not-host)
212 #!+sgi ("src/code/sgi-vm" :not-host)
214 ("src/code/target-signal" :not-host) ; needs OS-CONTEXT-T from x86-vm
216 ("src/code/symbol" :not-host)
217 ("src/code/bignum" :not-host)
218 ("src/code/target-numbers" :not-host)
219 ("src/code/float-trap" :not-host)
220 ("src/code/float" :not-host)
221 ("src/code/irrat" :not-host)
224 ("src/code/target-char" :not-host)
225 ("src/code/target-misc" :not-host)
228 #!-gengc ("src/code/room" :not-host)
229 #!-gengc ("src/code/gc" :not-host)
230 #!-gengc ("src/code/purify" :not-host)
232 #!+gengc ("src/code/gengc" :not-host)
234 ("src/code/stream" :not-host)
235 ("src/code/print" :not-host)
236 ("src/code/pprint" :not-host) ; maybe should be :BYTE-COMPILE T
237 ("src/code/early-format")
238 ("src/code/target-format" :not-host) ; maybe should be :BYTE-COMPILE T
239 ("src/code/defpackage" :not-host)
240 ("src/code/pp-backq" :not-host) ; maybe should be :BYTE-COMPILE T
242 ("src/code/error-error" :not-host) ; needs WITH-STANDARD-IO-SYNTAX macro
244 ("src/code/serve-event" :not-host)
245 ("src/code/fd-stream" :not-host)
247 ("src/code/module" :not-host) ; maybe should be :BYTE-COMPILE T
249 ("src/code/interr" :not-host)
251 ("src/code/query" :not-host) ; maybe should be :BYTE-COMPILE T
253 ("src/code/sort" :not-host)
254 ("src/code/time" :not-host)
255 ("src/code/weak" :not-host)
256 ("src/code/final" :not-host)
258 #!+mp ("src/code/multi-proc" :not-host)
260 ("src/code/setf-funs" :not-host)
262 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
263 ;;; compiler (and a few miscellaneous files whose dependencies make it
264 ;;; convenient to stick them here)
266 ("src/compiler/early-c")
267 ("src/compiler/policy")
270 ("src/code/typedefs")
272 ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
274 ("src/compiler/macros")
275 ("src/compiler/generic/vm-macs")
277 ;; needed by "compiler/vop"
278 ("src/compiler/sset")
280 ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
281 ("src/compiler/node")
283 ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
286 ;; needed by "vm" and "primtype"
287 ("src/compiler/backend")
289 ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
290 ("src/compiler/vmdef")
293 ("src/compiler/target/backend-parms")
295 ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
296 ("src/compiler/globaldb")
297 ("src/compiler/info-functions")
299 ("src/code/defmacro")
300 ("src/code/force-delayed-defbangmacros")
302 ("src/compiler/late-macros")
304 ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
305 ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
306 ("src/compiler/meta-vmdef")
308 ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
309 ("src/compiler/target/vm")
311 ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
312 ("src/code/early-type")
314 ;; FIXME: Classic CMU CL had SAFETY 2 DEBUG 2 set around the compilation
315 ;; of "code/class". Why?
318 ;; The definitions for CONDITION and CONDITION-CLASS depend on
319 ;; SLOT-CLASS, defined in classes.lisp.
320 ("src/code/late-target-error" :not-host) ; FIXME: maybe should be :BYTE-COMPILE T
322 ("src/compiler/generic/primtype")
324 ;; the implementation of the compiler-affecting part of forms like
325 ;; DEFMACRO and DEFTYPE; must be loaded before we can start
327 ("src/compiler/parse-lambda-list")
329 ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
330 ("src/code/host-alieneval")
332 ;; can't be done until definition of e.g. DEF-ALIEN-TYPE-CLASS in
333 ;; host-alieneval.lisp
334 ("src/code/host-c-call")
336 ;; SB!XC:DEFTYPE is needed in order to compile late-type
337 ;; in the host Common Lisp, and in order to run, it needs
338 ;; %COMPILER-DEFTYPE.
339 ("src/compiler/compiler-deftype")
341 ;; These appear here in the build sequence because they require
342 ;; * the macro INFO, defined in globaldb.lisp, and
343 ;; * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
344 ;; and because they define
345 ;; * the function SPECIFIER-TYPE, which is used in fndb.lisp.
346 ("src/code/late-type")
347 ("src/code/deftypes-for-target")
349 ;; The inline definition of TYPEP-TO-LAYOUT here needs inline
350 ;; functions defined in classes.lisp, and is needed in turn by
351 ;; the target version of "code/defstruct".
352 ("src/code/target-defstruct" :not-host)
354 ;; stuff needed by "code/defstruct"
355 ("src/code/cross-type" :not-target)
356 ("src/compiler/generic/vm-type")
358 ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in
359 ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
360 ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type".
361 ("src/code/defstruct")
363 ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
364 ;; machinery) before we can set its superclasses here.
365 ("src/code/alien-type")
367 ("src/compiler/knownfun")
369 ;; needs IR1-ATTRIBUTES macro, defined in knownfun.lisp
370 ("src/compiler/proclaim")
372 ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
373 ;; the TYPE= stuff defined in late-type.lisp, and the
374 ;; CHECK-FUNCTION-NAME defined in proclaim.lisp.
375 ("src/code/force-delayed-defbangstructs")
379 ("src/compiler/compiler-error")
381 ("src/code/type-init")
383 ;; These define target types needed by fndb.lisp.
386 ("src/code/hash-table")
387 ("src/code/readtable")
388 ("src/code/pathname")
389 ("src/compiler/lexenv")
391 ;; KLUDGE: Much stuff above here is the type system and/or the INFO
392 ;; system, not really the compiler proper. It might be easier to
393 ;; understand the system if those things were split off into packages
394 ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
396 ;; In classic CMU CL (re)build order, these were done later, but
397 ;; in building from scratch, these must be loaded before
398 ;; "compiler/generic/objdef" in order to allow forms like
399 ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
400 ("src/compiler/fndb")
401 ("src/compiler/generic/vm-fndb")
403 ("src/compiler/generic/objdef")
405 ("src/compiler/generic/interr")
407 ("src/compiler/bit-util")
409 ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
410 ("src/compiler/early-assem")
412 ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
413 ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
414 ;; before "compiler/main.lisp" so that those can be coded efficiently
415 ;; (and so that they don't cause lots of annoying compiler warnings
416 ;; about undefined types).
417 ("src/compiler/generic/core")
421 ("src/code/fop") ; needs macros from code/host-load.lisp
423 ("src/compiler/ctype")
424 ("src/compiler/disassem")
425 ("src/compiler/assem")
427 ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
429 ;; Compiling this requires fop definitions from code/fop.lisp and
430 ;; trace table definitions from compiler/trace-table.lisp.
431 ("src/compiler/dump")
433 ("src/compiler/main") ; needs DEFSTRUCT FASL-OUTPUT from dump.lisp
434 ("src/compiler/target-main" :not-host)
435 ("src/compiler/ir1tran")
436 ("src/compiler/ir1util")
437 ("src/compiler/ir1opt")
439 ;; Compiling this file requires the macros SB!ASSEM:EMIT-LABEL and
440 ;; SB!ASSEM:EMIT-POST-IT, defined in assem.lisp.
441 ("src/compiler/late-vmdef")
443 ("src/compiler/ir1final")
444 ("src/compiler/array-tran")
445 ("src/compiler/seqtran")
446 ("src/compiler/typetran")
447 ("src/compiler/generic/vm-typetran")
448 ("src/compiler/float-tran")
449 ("src/compiler/saptran")
450 ("src/compiler/srctran")
451 ("src/compiler/locall")
453 ("src/compiler/checkgen")
454 ("src/compiler/constraint")
455 ("src/compiler/envanal")
458 ("src/compiler/life")
460 ("src/code/debug-info")
462 ("src/compiler/debug-dump")
463 ("src/compiler/generic/utils")
464 ("src/assembly/assemfile")
466 ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
468 ("src/compiler/target/insts")
469 ("src/compiler/target/macros")
471 ("src/assembly/target/support")
473 ("src/compiler/target/move")
474 ("src/compiler/target/float")
475 ("src/compiler/target/sap")
476 ("src/compiler/target/system")
477 ("src/compiler/target/char")
478 ("src/compiler/target/memory")
479 ("src/compiler/target/static-fn")
480 ("src/compiler/target/arith")
481 ("src/compiler/target/subprim")
483 ("src/compiler/target/debug")
484 ("src/compiler/target/c-call")
485 ("src/compiler/target/cell")
486 ("src/compiler/target/values")
487 ("src/compiler/target/alloc")
488 ("src/compiler/target/call")
489 ("src/compiler/target/nlx")
490 ("src/compiler/target/show")
491 ("src/compiler/target/array"
492 ;; KLUDGE: Compiling this file raises alarming warnings of the form
493 ;; Argument FOO to VOP CHECK-BOUND has SC restriction
494 ;; DESCRIPTOR-REG which is not allowed by the operand type:
495 ;; (:OR POSITIVE-FIXNUM)
496 ;; This seems not to be something that I broke, but rather a "feature"
497 ;; inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
498 ;; Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
499 ;; these warnings are severe enough that they would ordinarily abort
500 ;; compilation, for now we blithely ignore them and press on to more
501 ;; pressing problems. Someday, though, it would be nice to figure out
502 ;; what the problem is and fix it.. -- WHN 19990323
504 ("src/compiler/target/pred")
505 ("src/compiler/target/type-vops")
507 ("src/assembly/target/assem-rtns" :assem)
508 ("src/assembly/target/array" :assem)
509 ("src/assembly/target/arith" :assem)
510 ("src/assembly/target/alloc" :assem)
512 ("src/compiler/pseudo-vops")
514 ("src/compiler/aliencomp")
519 ("src/compiler/stack")
520 ("src/compiler/control")
521 ("src/compiler/entry")
522 ("src/compiler/ir2tran")
524 ;; KLUDGE: This has #!+GENGC things in it which are intended to
525 ;; overwrite code in ir2tran.lisp, so it has to come after ir2tran.lisp.
527 ;; FIXME: Those things should probably be ir2tran.lisp instead, and the
528 ;; things they now overwrite should instead be #!-GENGC so they're never
529 ;; generated in the first place.
530 ("src/compiler/generic/vm-ir2tran")
532 ("src/compiler/copyprop")
533 ("src/compiler/represent")
534 ("src/compiler/generic/vm-tran")
535 ("src/compiler/pack")
536 ("src/compiler/codegen")
537 ("src/compiler/debug")
539 #!+sb-dyncount ("src/compiler/dyncount")
540 #!+sb-dyncount ("src/code/dyncount")
542 ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
543 ("src/code/format-time")
545 ;; needed by various unhappy-path cases in the cross-compiler
548 ;; This wasn't in classic CMU CL "comcom.lisp", but it has some stuff
549 ;; that Python-as-cross-compiler has turned out to need.
550 ("src/code/macroexpand")
552 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
553 ;; files which are only needed in the target system, and/or which are
554 ;; only possible in the target system, and which depend in some way
555 ;; (directly or indirectly) on stuff compiled as part of the compiler
557 ("src/compiler/generic/target-core" :not-host) ; uses stuff from
558 ; "compiler/generic/core"
560 ("src/code/eval" :not-host) ; uses INFO, wants compiler macro
561 ("src/code/target-sap" :not-host) ; uses SAP-INT-TYPE
562 ("src/code/target-package" :not-host) ; needs "code/package"
563 ("src/code/target-random" :not-host) ; needs "code/random"
564 ("src/code/target-hash-table" :not-host) ; needs "code/hash-table"
565 ("src/code/reader" :not-host) ; needs "code/readtable"
566 ("src/code/target-pathname" :not-host) ; needs "code/pathname", maybe
567 ; should be :BYTE-COMPILE T
568 ("src/code/filesys" :not-host) ; needs HOST from "code/pathname",
569 ; maybe should be :BYTE-COMPILE T
570 ("src/code/save" :not-host) ; uses the definition of PATHNAME
571 ; from "code/pathname"
572 ("src/code/sharpm" :not-host) ; uses stuff from "code/reader"
574 ;; stuff for byte compilation
576 ;; This is mostly :NOT-HOST because even though byte code is
577 ;; "portable", it'd be hard to make it work on the cross-compilation
578 ;; host, because fundamental BYTE-FUNCTION-OR-CLOSURE types are
579 ;; implemented as FUNCALLABLE-INSTANCEs, and it's not obvious how to
580 ;; emulate those in a vanilla ANSI Common Lisp.
581 ("src/code/byte-types" :not-host)
582 ("src/compiler/byte-comp")
583 ("src/compiler/target-byte-comp" :not-host)
584 ("src/code/byte-interp" :not-host) ; needs byte-comp *SYSTEM-CONSTANT-CODES*
586 ;; defines SB!DI:DO-DEBUG-FUNCTION-BLOCKS, needed by target-disassem.lisp
587 ("src/code/debug-int" :not-host)
589 ;; target-only assemblerish stuff
590 ("src/compiler/target-disassem" :not-host)
591 ("src/compiler/target/target-insts" :not-host)
593 ("src/code/debug" :not-host) ; maybe should be :BYTE-COMPILE T
595 ;; These can't be compiled until CONDITION and DEFINE-CONDITION
596 ;; are defined, and they also use SB-DEBUG:*STACK-TOP-HINT*.
597 ("src/code/parse-defmacro-errors" :not-host)
599 ("src/code/bit-bash" :not-host) ; needs %NEGATE from assembly/target/arith
601 ("src/code/target-load" :not-host) ; needs specials from code/load.lisp
603 ;; FIXME: Does this really need stuff from compiler/dump.lisp?
604 ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
606 ("src/code/cold-init" :not-host ; needs (SETF EXTERN-ALIEN) macroexpansion
607 ;; FIXME: When building sbcl-0.pre7.14.flaky4.5 under sbcl-0.6.12.1
608 ;; with :SB-SHOW on the target *FEATURES* list, cross-compilation of
609 ;; this file gives a WARNING in HEXSTR,
610 ;; Lisp error during constant folding:
611 ;; Argument X is not a REAL: NIL
612 ;; This seems to come from DEF!MACRO %WITH-ARRAY-DATA-MACRO code
615 ;; (unless (or ,unsafe? (<= ,end ,size))
618 ;; where the system is trying to constant-fold the <= form when the
619 ;; ,END binding is known to be NIL at compile time. Since the <= form
620 ;; is unreachable in that case, this shouldn't be signalling a WARNING;
621 ;; but as long as it is, we have to ignore it in order to go on.
624 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
625 ;; target macros and DECLAIMs installed at build-the-cross-compiler time
627 ;; Declare all target special variables defined by ANSI now, so that
628 ;; we don't have to worry about any of them being bound incorrectly
629 ;; when the compiler processes code which appears before the appropriate
630 ;; DEFVAR or DEFPARAMETER.
631 ("src/code/cl-specials")
633 ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
636 ;; FIXME: Since a lot of this code is just macros, perhaps it should be
639 ("src/code/destructuring-bind")
640 ("src/code/early-setf")
643 ("src/code/late-setf")
645 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
647 ;; other target-code-building stuff which can't be processed until
648 ;; machinery like SB!XC:DEFMACRO exists
650 ("src/code/late-format") ; needs SB!XC:DEFMACRO
651 ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
653 ("src/code/late-defbangmethod"))