3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
12 ;;; a linear ordering of system sources which works both to compile/load
13 ;;; the cross-compiler under the host Common Lisp and then to cross-compile
14 ;;; the complete system into the under-construction target SBCL
16 ;;; Of course, it'd be very nice to have this be a dependency DAG
17 ;;; instead, so that we could do automated incremental recompilation.
18 ;;; But the dependencies are varied and subtle, and it'd be extremely
19 ;;; difficult to extract them automatically, and it'd be extremely
20 ;;; tedious and error-prone to extract them manually, so we don't
21 ;;; extract them. (It would be nice to fix this someday. The most
22 ;;; feasible approach that I can think of would be to make the
23 ;;; dependencies work on a package level, not an individual file
24 ;;; level. Doing it at the package level would make the granularity
25 ;;; coarse enough that it would probably be pretty easy to maintain
26 ;;; the dependency information manually, and the brittleness of the
27 ;;; package system would help make most violations of the declared
28 ;;; dependencies obvious at build time. -- WHN 20000803
30 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
33 ;; This comes early because it's useful for debugging everywhere.
36 ;; This comes early because the cross-compilation host's backquote
37 ;; logic can expand into something which can't be executed on the
38 ;; target Lisp (e.g. in CMU CL where it expands into internal
39 ;; functions like BACKQ-LIST), and by replacing the host backquote
40 ;; logic with our own as early as possible, we minimize the chance of
41 ;; any forms referring to cross-compilation host internal functions
42 ;; leaking into target SBCL code.
45 ;; It's difficult to be too early with a DECLAIM SPECIAL (or DEFVAR
46 ;; or whatever) thanks to the sullenly-do-the-wrong-thing semantics
47 ;; of CL special binding when the variable is undeclared.
48 ("src/code/globals" :not-host)
50 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
51 ;; various DEFSETFs and/or other DEFMACROish things, defined as early as
52 ;; possible so we don't need to fiddle with any subtleties of defining them
53 ;; before any possible use
55 ;; KLUDGE: It would be nice to reimplement most or all of these as
56 ;; functions (possibly inlined functions) so that we wouldn't need to
57 ;; worry so much about forcing them all to be defined before any possible
58 ;; use. It might be pretty tedious, though, working through any
59 ;; transforms and translators and optimizers and so forth to make sure
60 ;; that they can handle the change. -- WHN 19990919
63 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
64 ;;; cross-compiler-only replacements for stuff which in target Lisp would be
65 ;;; supplied by basic machinery
67 ("src/code/cross-misc" :not-target)
68 ("src/code/cross-float" :not-target)
69 ("src/code/cross-io" :not-target)
70 ("src/code/cross-sap" :not-target)
72 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
73 ;;; stuff needed early both in cross-compilation host and in target Lisp
76 ("src/code/early-defbangmethod")
78 ("src/code/defbangtype")
79 ("src/code/defbangmacro")
81 ("src/code/primordial-extensions")
83 ;; for various constants e.g. SB!XC:MOST-POSITIVE-FIXNUM and
84 ;; SB!VM:N-LOWTAG-BITS, needed by "early-objdef" and others
85 ("src/compiler/generic/early-vm")
86 ("src/compiler/generic/early-objdef")
87 ("src/compiler/target/parms")
88 ("src/code/early-array") ; needs "early-vm" numbers
90 ("src/code/parse-body") ; on host for PARSE-BODY
91 ("src/code/parse-defmacro") ; on host for PARSE-DEFMACRO
92 ("src/code/early-extensions") ; on host for COLLECT, SYMBOLICATE, etc.
93 ("src/compiler/deftype") ; on host for SB!XC:DEFTYPE
94 ("src/code/early-alieneval") ; for vars needed both at build and run time
96 ("src/code/specializable-array")
99 ("src/code/early-fasl")
101 ;; mostly needed by stuff from comcom, but also used by "x86-vm"
102 ("src/code/debug-var-io")
104 ("src/code/cold-init-helper-macros")
106 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
107 ;;; basic machinery for the target Lisp. Note that although most of these
108 ;;; files are flagged :NOT-HOST, a few might not be.
110 ("src/code/target-defbangmethod" :not-host)
112 ("src/code/early-print" :not-host)
113 ("src/code/early-pprint" :not-host)
114 ("src/code/early-impl" :not-host)
116 ("src/code/target-extensions" :not-host)
118 ("src/code/early-defstructs" :not-host) ; gotta-be-first DEFSTRUCTs
120 ("src/code/defbangstruct")
122 ("src/code/funutils" :not-host)
124 ;; This needs DEF!STRUCT, and is itself needed early so that structure
125 ;; accessors and inline functions defined here can be compiled inline
126 ;; later. (Avoiding full calls not only increases efficiency, but also
127 ;; avoids some cold init issues involving full calls to structure
129 ("src/code/type-class")
131 ("src/code/pcounter" :not-host)
133 ("src/code/ansi-stream" :not-host)
135 ("src/code/sysmacs" :not-host)
137 ;; "assembly/assemfile" was here in the sequence inherited from
138 ;; CMU CL worldcom.lisp, but also appears later in the sequence
139 ;; inherited from CMU CL comcom.lisp. We shouldn't need two versions,
140 ;; so I've deleted the one here. -- WHN 19990620
142 ("src/code/target-error" :not-host)
144 ;; a comment from classic CMU CL:
145 ;; "These guys can supposedly come in any order, but not really.
146 ;; Some are put at the end so that macros don't run interpreted
148 ;; Dunno exactly what this meant or whether it still holds. -- WHN 19990803
149 ;; FIXME: more informative and up-to-date comment?
150 ("src/code/kernel" :not-host)
151 ("src/code/toplevel" :not-host)
152 ("src/code/cold-error" :not-host)
153 ("src/code/fdefinition" :not-host)
154 ;; FIXME: Figure out some way to make the compiler macro for INFO
155 ;; available for compilation of "code/fdefinition".
157 ;; In classic CMU CL, code/type was here. I've since split that into
158 ;; lots of smaller pieces, some of which are here and some of which
159 ;; are handled later in the sequence, when the cross-compiler is
160 ;; built. -- WHN 19990620
161 ("src/code/target-type" :not-host)
163 ("src/code/pred" :not-host)
165 ("src/code/target-alieneval" :not-host)
166 ("src/code/target-c-call" :not-host)
167 ("src/code/target-allocate" :not-host)
169 ;; This needs DEFINE-ALIEN-ROUTINE from target-alieneval.
170 ("src/code/misc-aliens" :not-host)
172 ("src/code/array" :not-host)
173 ("src/code/target-sxhash" :not-host)
175 ("src/code/list" :not-host)
176 ("src/code/seq" :not-host) ; "code/seq" should come after "code/list".
177 ("src/code/coerce" :not-host)
179 ("src/code/string" :not-host)
180 ("src/code/mipsstrops" :not-host)
182 ;; "src/code/unix.lisp" needs this. It's generated automatically by
183 ;; grovel_headers.c, i.e. it's not in CVS.
184 ("output/stuff-groveled-from-headers" :not-host)
186 ("src/code/unix" :not-host)
188 #!+mach ("src/code/mach" :not-host)
189 #!+mach ("src/code/mach-os" :not-host)
190 #!+sunos ("src/code/sunos-os" :not-host)
191 #!+hpux ("src/code/hpux-os" :not-host)
192 #!+osf1 ("src/code/osf1-os" :not-host)
193 #!+irix ("src/code/irix-os" :not-host)
194 #!+bsd ("src/code/bsd-os" :not-host)
195 #!+linux ("src/code/linux-os" :not-host)
197 ;; sparc-vm and ppc-vm need sc-offset defined to get at internal
198 ;; error args. This file contains stuff previously in
199 ;; debug-info.lisp. Should it therefore be :not-host? -- CSR,
201 ("src/code/sc-offset")
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 #!+ppc ("src/code/ppc-vm" :not-host)
212 #!+alpha ("src/code/alpha-vm" :not-host)
213 #!+sgi ("src/code/sgi-vm" :not-host)
215 ("src/code/target-signal" :not-host) ; needs OS-CONTEXT-T from x86-vm
217 ("src/code/symbol" :not-host)
218 ("src/code/bignum" :not-host)
219 ("src/code/numbers" :not-host)
220 ("src/code/float-trap" :not-host)
221 ("src/code/float" :not-host)
222 ("src/code/irrat" :not-host)
225 ("src/code/target-char" :not-host)
226 ("src/code/target-misc" :not-host)
229 ("src/code/room" :not-host)
230 ("src/code/gc" :not-host)
231 ("src/code/purify" :not-host)
233 ("src/code/stream" :not-host)
234 ("src/code/print" :not-host)
235 ("src/code/pprint" :not-host)
236 ("src/code/early-format")
237 ("src/code/target-format" :not-host)
238 ("src/code/defpackage" :not-host)
239 ("src/code/pp-backq" :not-host)
241 ("src/code/error-error" :not-host) ; needs WITH-STANDARD-IO-SYNTAX macro
243 ("src/code/serve-event" :not-host)
244 ("src/code/fd-stream" :not-host)
246 ("src/code/module" :not-host)
248 ("src/code/interr" :not-host)
250 ("src/code/query" :not-host)
252 ("src/code/sort" :not-host)
253 ("src/code/time" :not-host)
254 ("src/code/weak" :not-host)
255 ("src/code/final" :not-host)
257 #!+mp ("src/code/multi-proc" :not-host)
259 ("src/code/setf-funs" :not-host)
261 ("src/code/stubs" :not-host)
263 ("src/code/exhaust" :not-host)
265 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
266 ;;; compiler (and a few miscellaneous files whose dependencies make it
267 ;;; convenient to stick them here)
269 ("src/compiler/early-c")
270 ("src/compiler/policy")
271 ("src/code/typedefs")
273 ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
275 ("src/compiler/macros")
276 ("src/compiler/generic/vm-macs")
278 ;; needed by "compiler/vop"
279 ("src/compiler/sset")
281 ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
282 ("src/compiler/node")
284 ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
287 ;; needed by "vm" and "primtype"
288 ("src/compiler/backend")
290 ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
291 ("src/compiler/vmdef")
294 ("src/compiler/target/backend-parms")
296 ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
297 ("src/compiler/globaldb")
298 ("src/compiler/info-functions")
300 ("src/code/defmacro")
301 ("src/code/force-delayed-defbangmacros")
303 ("src/compiler/late-macros")
305 ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
306 ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
307 ("src/compiler/meta-vmdef")
309 ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
310 ("src/compiler/target/vm")
312 ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
313 ("src/code/early-type")
315 ;; FIXME: Classic CMU CL had (OPTIMIZE (SAFETY 2) (DEBUG 2) declared
316 ;; around the compilation of "code/class". Why?
319 ;; The definition of CONDITION-CLASS depends on SLOT-CLASS, defined
321 ("src/code/condition" :not-host)
323 ("src/compiler/generic/primtype")
325 ;; the implementation of the compiler-affecting part of forms like
326 ;; DEFMACRO and DEFTYPE; must be loaded before we can start
328 ("src/compiler/parse-lambda-list")
330 ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
331 ("src/code/host-alieneval")
333 ;; can't be done until definition of e.g. DEFINE-ALIEN-TYPE-CLASS in
334 ;; host-alieneval.lisp
335 ("src/code/host-c-call")
337 ;; SB!XC:DEFTYPE is needed in order to compile late-type
338 ;; in the host Common Lisp, and in order to run, it needs
339 ;; %COMPILER-DEFTYPE.
340 ("src/compiler/compiler-deftype")
342 ;; These appear here in the build sequence because they require
343 ;; * the macro INFO, defined in globaldb.lisp, and
344 ;; * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
345 ;; and because they define
346 ;; * the function SPECIFIER-TYPE, which is used in fndb.lisp.
347 ("src/code/late-type")
348 ("src/code/deftypes-for-target")
350 ;; defines IR1-ATTRIBUTES macro, needed by proclaim.lisp
351 ("src/compiler/knownfun")
353 ;; needs FUN-INFO structure slot setters, defined in knownfun.lisp
354 ("src/compiler/fun-info-funs")
356 ;; stuff needed by "code/defstruct"
357 ("src/code/cross-type" :not-target)
358 ("src/compiler/generic/vm-type")
359 ("src/compiler/proclaim")
360 ("src/code/typecheckfuns")
362 ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in
363 ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
364 ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type",
365 ;; and SB!XC:PROCLAIM, defined in "src/compiler/proclaim"
366 ("src/code/defstruct")
367 ("src/code/target-defstruct" :not-host)
369 ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
370 ;; machinery) before we can set its superclasses here.
371 ("src/code/alien-type")
373 ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
374 ;; the TYPE= stuff defined in late-type.lisp, and the
375 ;; CHECK-FUN-NAME defined in proclaim.lisp.
376 ("src/code/force-delayed-defbangstructs")
378 ("src/code/typep" :not-host)
380 ("src/compiler/compiler-error")
382 ("src/code/type-init")
384 ;; These define target types needed by fndb.lisp.
387 ("src/code/hash-table")
388 ("src/code/readtable")
389 ("src/code/pathname")
390 ("src/compiler/lexenv")
392 ;; KLUDGE: Much stuff above here is the type system and/or the INFO
393 ;; system, not really the compiler proper. It might be easier to
394 ;; understand the system if those things were split off into packages
395 ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
397 ;; In classic CMU CL (re)build order, these were done later, but
398 ;; in building from scratch, these must be loaded before
399 ;; "compiler/generic/objdef" in order to allow forms like
400 ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
401 ("src/compiler/fndb")
402 ("src/compiler/generic/vm-fndb")
404 ("src/compiler/generic/objdef")
406 ("src/compiler/generic/interr")
408 ("src/compiler/bit-util")
410 ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
411 ("src/compiler/early-assem")
413 ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
414 ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
415 ;; before "compiler/main.lisp" so that those can be coded efficiently
416 ;; (and so that they don't cause lots of annoying compiler warnings
417 ;; about undefined types).
418 ("src/compiler/generic/core")
422 ("src/code/fop") ; needs macros from code/load.lisp
424 ("src/compiler/ctype")
425 ("src/compiler/disassem")
426 ("src/compiler/assem")
428 ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
430 ;; Compiling this requires fop definitions from code/fop.lisp and
431 ;; trace table definitions from compiler/trace-table.lisp.
433 ;; FIXME: When building sbcl-0.pre7.14.flaky4.5 under sbcl-0.6.12.1
434 ;; with :SB-SHOW on the target *FEATURES* list, cross-compilation of
435 ;; this file gives a WARNING in HEXSTR,
436 ;; Lisp error during constant folding:
437 ;; Argument X is not a REAL: NIL
438 ;; This seems to come from DEF!MACRO %WITH-ARRAY-DATA-MACRO code
441 ;; (unless (or ,unsafe? (<= ,end ,size))
444 ;; where the system is trying to constant-fold the <= form when the
445 ;; ,END binding is known to be NIL at compile time. Since the <= form
446 ;; is unreachable in that case, this shouldn't be signalling a WARNING;
447 ;; but as long as it is, we have to ignore it in order to go on.
450 ("src/compiler/main") ; needs DEFSTRUCT FASL-OUTPUT from dump.lisp
451 ("src/compiler/target-main" :not-host)
452 ("src/compiler/ir1tran")
453 ("src/compiler/ir1-translators")
454 ("src/compiler/ir1util")
455 ("src/compiler/ir1report")
456 ("src/compiler/ir1opt")
458 ;; Compiling this file requires the macros SB!ASSEM:EMIT-LABEL and
459 ;; SB!ASSEM:EMIT-POST-IT, defined in assem.lisp.
460 ("src/compiler/late-vmdef")
462 ("src/compiler/ir1final")
463 ("src/compiler/array-tran")
464 ("src/compiler/seqtran")
465 ("src/compiler/typetran")
466 ("src/compiler/generic/vm-typetran")
467 ("src/compiler/float-tran")
468 ("src/compiler/saptran")
469 ("src/compiler/srctran")
470 ("src/compiler/locall")
472 ("src/compiler/checkgen")
473 ("src/compiler/constraint")
474 ("src/compiler/physenvanal")
477 ("src/compiler/life")
479 ("src/code/debug-info")
481 ("src/compiler/debug-dump")
482 ("src/compiler/generic/utils")
483 ("src/assembly/assemfile")
485 ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
487 ("src/compiler/target/insts")
488 ("src/compiler/target/macros")
490 ("src/assembly/target/support")
492 ("src/compiler/target/move")
493 ("src/compiler/target/float")
494 ("src/compiler/target/sap")
495 ("src/compiler/target/system")
496 ("src/compiler/target/char")
497 ("src/compiler/target/memory")
498 ("src/compiler/target/static-fn")
499 ("src/compiler/target/arith"
500 ;; KLUDGE: for ppc and sparc this appears to be necessary -- see the
501 ;; comment below regarding src/compiler/target/array -- CSR,
504 ("src/compiler/target/subprim")
506 ("src/compiler/target/debug")
507 ;; src/compiler/sparc/c-call contains a deftransform for
508 ;; %ALIEN-FUNCALL -- CSR
509 ("src/compiler/early-aliencomp")
510 ("src/compiler/target/c-call")
511 ("src/compiler/target/cell")
512 ("src/compiler/target/values")
513 ("src/compiler/target/alloc")
514 ("src/compiler/target/call")
515 ("src/compiler/target/nlx")
516 ("src/compiler/target/show")
517 ("src/compiler/target/array"
518 ;; KLUDGE: Compiling this file raises alarming warnings of the form
519 ;; Argument FOO to VOP CHECK-BOUND has SC restriction
520 ;; DESCRIPTOR-REG which is not allowed by the operand type:
521 ;; (:OR POSITIVE-FIXNUM)
522 ;; This seems not to be something that I broke, but rather a "feature"
523 ;; inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
524 ;; Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
525 ;; these warnings are severe enough that they would ordinarily abort
526 ;; compilation, for now we blithely ignore them and press on to more
527 ;; pressing problems. Someday, though, it would be nice to figure out
528 ;; what the problem is and fix it.. -- WHN 19990323
530 ("src/compiler/target/pred")
531 ("src/compiler/target/type-vops")
533 ("src/assembly/target/assem-rtns" :assem)
534 ("src/assembly/target/array" :assem)
535 ("src/assembly/target/arith" :assem)
536 ("src/assembly/target/alloc" :assem)
538 ("src/compiler/pseudo-vops")
540 ("src/compiler/aliencomp")
545 ("src/compiler/stack")
546 ("src/compiler/control")
547 ("src/compiler/entry")
548 ("src/compiler/ir2tran")
550 ("src/compiler/generic/vm-ir2tran")
552 ("src/compiler/copyprop")
553 ("src/compiler/represent")
554 ("src/compiler/generic/vm-tran")
555 ("src/compiler/pack")
556 ("src/compiler/codegen")
557 ("src/compiler/debug")
559 #!+sb-dyncount ("src/compiler/dyncount")
560 #!+sb-dyncount ("src/code/dyncount")
562 ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
563 ("src/code/format-time")
565 ;; needed by various unhappy-path cases in the cross-compiler
568 ;; This wasn't in classic CMU CL "comcom.lisp", but it has some stuff
569 ;; that Python-as-cross-compiler has turned out to need.
570 ("src/code/macroexpand")
572 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
573 ;; files which depend in some way (directly or indirectly) on stuff
574 ;; compiled as part of the compiler
576 ("src/code/late-extensions") ; needs condition system
577 ("src/compiler/generic/target-core" :not-host) ; uses stuff from
578 ; "compiler/generic/core"
580 ("src/code/eval" :not-host) ; uses INFO, wants compiler macro
581 ("src/code/target-sap" :not-host) ; uses SAP-INT type
582 ("src/code/target-package" :not-host) ; needs "code/package"
583 ("src/code/target-random" :not-host) ; needs "code/random"
584 ("src/code/target-hash-table" :not-host) ; needs "code/hash-table"
585 ("src/code/reader" :not-host) ; needs "code/readtable"
586 ("src/code/target-pathname" :not-host) ; needs "code/pathname"
587 ("src/code/filesys" :not-host) ; needs HOST from "code/pathname"
588 ("src/code/save" :not-host) ; uses the definition of PATHNAME
589 ; from "code/pathname"
590 ("src/code/sharpm" :not-host) ; uses stuff from "code/reader"
592 ;; defines SB!DI:DO-DEBUG-FUN-BLOCKS, needed by target-disassem.lisp
593 ("src/code/debug-int" :not-host)
595 ;; target-only assemblerish stuff
596 ("src/compiler/target-disassem" :not-host)
597 ("src/compiler/target/target-insts" :not-host)
599 ("src/code/debug" :not-host)
601 ;; The code here can't be compiled until CONDITION and
602 ;; DEFINE-CONDITION are defined and SB!DEBUG:*STACK-TOP-HINT* is
604 ("src/code/parse-defmacro-errors")
606 ("src/code/bit-bash" :not-host) ; needs %NEGATE from assembly/target/arith
608 ("src/code/target-load" :not-host) ; needs special vars from code/load.lisp
610 ;; FIXME: Does this really need stuff from compiler/dump.lisp?
611 ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
613 ("src/code/cold-init" :not-host ; needs (SETF EXTERN-ALIEN) macroexpansion
614 ;; FIXME: When building sbcl-0.pre7.14.flaky4.5 under sbcl-0.6.12.1
615 ;; with :SB-SHOW on the target *FEATURES* list, cross-compilation of
616 ;; this file gives a WARNING in HEXSTR,
617 ;; Lisp error during constant folding:
618 ;; Argument X is not a REAL: NIL
619 ;; This seems to come from DEF!MACRO %WITH-ARRAY-DATA-MACRO code
622 ;; (unless (or ,unsafe? (<= ,end ,size))
625 ;; where the system is trying to constant-fold the <= form when the
626 ;; ,END binding is known to be NIL at compile time. Since the <= form
627 ;; is unreachable in that case, this shouldn't be signalling a WARNING;
628 ;; but as long as it is, we have to ignore it in order to go on.
631 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
632 ;; target macros and DECLAIMs installed at build-the-cross-compiler time
634 ;; Declare all target special variables defined by ANSI now, so that
635 ;; we don't have to worry about any of them being bound incorrectly
636 ;; when the compiler processes code which appears before the appropriate
637 ;; DEFVAR or DEFPARAMETER.
638 ("src/code/cl-specials")
640 ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
643 ("src/code/destructuring-bind")
644 ("src/code/early-setf")
647 ("src/code/late-setf")
649 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
651 ;; other target-code-building stuff which can't be processed until
652 ;; machinery like SB!XC:DEFMACRO exists
654 ("src/code/late-format") ; needs SB!XC:DEFMACRO
655 ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
657 ("src/code/late-defbangmethod"))