6abbd77ab15867e7802ae289c63a2eeaa9ef2fa5
[sbcl.git] / stems-and-flags.lisp-expr
1 ;;;; -*- Lisp -*-
2 ;;;; build order
3
4 ;;;; This software is part of the SBCL system. See the README file for
5 ;;;; more information.
6 ;;;;
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.
12
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
16 ;;; Common Lisp.
17 ;;;
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
31 ;;;
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?
36 (
37  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
38  ;;; miscellaneous
39
40  ;; This comes early because it's useful for debugging everywhere.
41  ("src/code/show")
42
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.
49  ("src/code/backq")
50
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
55
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
62  ("src/code/defsetfs")
63
64  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
65  ;;; cross-compiler-only replacements for stuff which in target Lisp would be
66  ;;; supplied by basic machinery
67
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)
72
73  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
74  ;;; stuff needed early both in cross-compilation host and in target Lisp
75
76  ("src/code/uncross")
77  ("src/code/early-defbangmethod")
78
79  ("src/code/defbangtype")
80  ("src/code/defbangmacro")
81
82  ("src/code/primordial-extensions")
83
84  ;; for various constants e.g. SB!VM:*TARGET-MOST-POSITIVE-FIXNUM* and
85  ;; SB!VM:N-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
90
91  ("src/code/parse-body")       ; on host for PARSE-BODY
92  ("src/code/parse-defmacro")   ; on host for PARSE-DEFMACRO
93  ("src/code/early-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
96
97  ("src/code/specializable-array")
98
99  ("src/code/early-cl")
100  ("src/code/early-fasl")
101
102  ;; mostly needed by stuff from comcom, but also used by "x86-vm"
103  ("src/code/debug-var-io")
104
105  ("src/code/cold-init-helper-macros")
106
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.
110
111  ("src/code/target-defbangmethod" :not-host)
112
113  ("src/code/early-print" :not-host)
114  ("src/code/early-pprint" :not-host)
115  ("src/code/early-impl" :not-host)
116
117  ("src/code/target-extensions" :not-host)
118
119  ("src/code/early-defstructs" :not-host) ; gotta-be-first DEFSTRUCTs
120
121  ("src/code/defbangstruct")
122
123  ("src/code/funutils" :not-host)
124
125  ;; This needs DEF!STRUCT, and is itself needed early so that structure
126  ;; accessors and inline functions defined here can be compiled inline
127  ;; later. (Avoiding full calls not only increases efficiency, but also
128  ;; avoids some cold init issues involving full calls to structure
129  ;; accessors.)
130  ("src/code/type-class")
131
132  ("src/code/pcounter" :not-host)
133
134  ("src/code/lisp-stream" :not-host)
135
136  ("src/code/sysmacs" :not-host)
137
138  ;; "assembly/assemfile" was here in the sequence inherited from
139  ;; CMU CL worldcom.lisp, but also appears later in the sequence
140  ;; inherited from CMU CL comcom.lisp. We shouldn't need two versions,
141  ;; so I've deleted the one here. -- WHN 19990620
142
143  ("src/code/target-error" :not-host)
144
145  ;; a comment from classic CMU CL:
146  ;;   "These guys can supposedly come in any order, but not really.
147  ;;    Some are put at the end so that macros don't run interpreted
148  ;;    and stuff."
149  ;; Dunno exactly what this meant or whether it still holds. -- WHN 19990803
150  ;; FIXME: more informative and up-to-date comment?
151  ("src/code/globals"     :not-host)
152  ("src/code/kernel"      :not-host)
153  ("src/code/toplevel"    :not-host)
154  ("src/code/cold-error"  :not-host)
155  ("src/code/fdefinition" :not-host)
156  ;; FIXME: Figure out some way to make the compiler macro for INFO 
157  ;; available for compilation of "code/fdefinition".
158
159  ;; In classic CMU CL, code/type was here. I've since split that into
160  ;; lots of smaller pieces, some of which are here and some of which
161  ;; are handled later in the sequence, when the cross-compiler is
162  ;; built. -- WHN 19990620
163  ("src/code/target-type" :not-host)
164
165  ("src/code/pred" :not-host)
166
167  ("src/code/target-alieneval" :not-host)
168  ("src/code/target-c-call"    :not-host)
169  ("src/code/target-allocate"  :not-host)
170
171  ;; This needs DEF-ALIEN-ROUTINE from target-alieneval.
172  ("src/code/misc-aliens" :not-host)
173
174  ("src/code/array"         :not-host)
175  ("src/code/target-sxhash" :not-host)
176
177  ("src/code/list"   :not-host)
178  ("src/code/seq"    :not-host) ; "code/seq" should come after "code/list".
179  ("src/code/coerce" :not-host)
180
181  ("src/code/string"     :not-host)
182  ("src/code/mipsstrops" :not-host)
183
184  ;; "src/code/unix.lisp" needs this. It's generated automatically by
185  ;; grovel_headers.c, i.e. it's not in CVS.
186  ("output/stuff-groveled-from-headers" :not-host)
187
188  ("src/code/unix" :not-host)
189
190  #!+mach  ("src/code/mach"     :not-host)
191  #!+mach  ("src/code/mach-os"  :not-host)
192  #!+sunos ("src/code/sunos-os" :not-host)
193  #!+hpux  ("src/code/hpux-os"  :not-host)
194  #!+osf1  ("src/code/osf1-os"  :not-host)
195  #!+irix  ("src/code/irix-os"  :not-host)
196  #!+bsd   ("src/code/bsd-os"   :not-host)
197  #!+linux ("src/code/linux-os" :not-host)
198
199  ;; KLUDGE: I'd prefer to have this done with a "code/target" softlink
200  ;; instead of a bunch of reader macros. -- WHN 19990308
201  #!+pmax ("src/code/pmax-vm" :not-host)
202  #!+(and sparc svr4) ("src/code/sparc-svr4-vm" :not-host)
203  #!+(and sparc (not svr4)) ("src/code/sparc-vm" :not-host)
204  #!+rt    ("src/code/rt-vm"    :not-host)
205  #!+hppa  ("src/code/hppa-vm"  :not-host)
206  #!+x86   ("src/code/x86-vm"   :not-host)
207  #!+alpha ("src/code/alpha-vm" :not-host)
208  #!+sgi   ("src/code/sgi-vm"   :not-host)
209
210  ("src/code/target-signal" :not-host) ; needs OS-CONTEXT-T from x86-vm
211
212  ("src/code/symbol"     :not-host)
213  ("src/code/bignum"     :not-host)
214  ("src/code/numbers"    :not-host)
215  ("src/code/float-trap" :not-host)
216  ("src/code/float"      :not-host)
217  ("src/code/irrat"      :not-host)
218
219  ("src/code/char")
220  ("src/code/target-char" :not-host)
221  ("src/code/target-misc" :not-host)
222  ("src/code/misc")
223
224  ("src/code/room"   :not-host)
225  ("src/code/gc"     :not-host)
226  ("src/code/purify" :not-host)
227
228  ("src/code/stream"        :not-host)
229  ("src/code/print"         :not-host)
230  ("src/code/pprint"        :not-host)
231  ("src/code/early-format")
232  ("src/code/target-format" :not-host)
233  ("src/code/defpackage"    :not-host)
234  ("src/code/pp-backq"      :not-host)
235
236  ("src/code/error-error" :not-host) ; needs WITH-STANDARD-IO-SYNTAX macro
237
238  ("src/code/serve-event" :not-host)
239  ("src/code/fd-stream"   :not-host)
240
241  ("src/code/module" :not-host)
242
243  ("src/code/interr" :not-host)
244
245  ("src/code/query"  :not-host)
246
247  ("src/code/sort"  :not-host)
248  ("src/code/time"  :not-host)
249  ("src/code/weak"  :not-host)
250  ("src/code/final" :not-host)
251
252  #!+mp ("src/code/multi-proc" :not-host)
253
254  ("src/code/setf-funs" :not-host)
255
256  ("src/code/stubs" :not-host)
257
258  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
259  ;;; compiler (and a few miscellaneous files whose dependencies make it
260  ;;; convenient to stick them here)
261
262  ("src/compiler/early-c")
263  ("src/compiler/policy")
264  ("src/code/typedefs")
265
266  ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
267
268  ("src/compiler/macros")
269  ("src/compiler/generic/vm-macs")
270
271  ;; needed by "compiler/vop"
272  ("src/compiler/sset")
273
274  ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
275  ("src/compiler/node")
276
277  ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
278  ("src/compiler/vop")
279
280  ;; needed by "vm" and "primtype"
281  ("src/compiler/backend")
282
283  ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
284  ("src/compiler/vmdef")
285
286  ;; needs "backend"
287  ("src/compiler/target/backend-parms")
288
289  ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
290  ("src/compiler/globaldb")
291  ("src/compiler/info-functions")
292
293  ("src/code/defmacro")
294  ("src/code/force-delayed-defbangmacros")
295
296  ("src/compiler/late-macros")
297
298  ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
299  ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
300  ("src/compiler/meta-vmdef")
301
302  ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
303  ("src/compiler/target/vm")
304
305  ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
306  ("src/code/early-type")
307
308  ;; FIXME: Classic CMU CL had SAFETY 2 DEBUG 2 set around the compilation
309  ;; of "code/class". Why?
310  ("src/code/class")
311
312  ;; The definitions for CONDITION and CONDITION-CLASS depend on
313  ;; SLOT-CLASS, defined in classes.lisp.
314  ("src/code/condition" :not-host)
315
316  ("src/compiler/generic/primtype")
317
318  ;; the implementation of the compiler-affecting part of forms like
319  ;; DEFMACRO and DEFTYPE; must be loaded before we can start
320  ;; defining types
321  ("src/compiler/parse-lambda-list")
322
323  ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
324  ("src/code/host-alieneval")
325
326  ;; can't be done until definition of e.g. DEF-ALIEN-TYPE-CLASS in
327  ;; host-alieneval.lisp
328  ("src/code/host-c-call")
329
330  ;; SB!XC:DEFTYPE is needed in order to compile late-type
331  ;; in the host Common Lisp, and in order to run, it needs
332  ;; %COMPILER-DEFTYPE.
333  ("src/compiler/compiler-deftype")
334
335  ;; These appear here in the build sequence because they require
336  ;;   * the macro INFO, defined in globaldb.lisp, and
337  ;;   * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
338  ;; and because they define
339  ;;   * the function SPECIFIER-TYPE, which is used in fndb.lisp.
340  ("src/code/late-type")
341  ("src/code/deftypes-for-target")
342
343  ;; The inline definition of TYPEP-TO-LAYOUT here needs inline
344  ;; functions defined in classes.lisp, and is needed in turn by
345  ;; the target version of "code/defstruct".
346  ("src/code/target-defstruct" :not-host)
347
348  ;; defines IR1-ATTRIBUTES macro, needed by proclaim.lisp
349  ("src/compiler/knownfun")
350
351  ;; stuff needed by "code/defstruct"
352  ("src/code/cross-type" :not-target)
353  ("src/compiler/generic/vm-type")
354  ("src/compiler/proclaim")
355
356  ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in 
357  ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
358  ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type",
359  ;; and SB!XC:PROCLAIM, defined in "src/compiler/proclaim"
360  ("src/code/defstruct")
361
362  ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
363  ;; machinery) before we can set its superclasses here.
364  ("src/code/alien-type")
365
366  ;; was here until sbcl-0.pre7.67
367  #+nil ("src/compiler/knownfun")
368
369  ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
370  ;; the TYPE= stuff defined in late-type.lisp, and the
371  ;; CHECK-FUN-NAME defined in proclaim.lisp.
372  ("src/code/force-delayed-defbangstructs")
373
374  ("src/code/typep")
375
376  ("src/compiler/compiler-error")
377
378  ("src/code/type-init")
379
380  ;; These define target types needed by fndb.lisp.
381  ("src/code/package")
382  ("src/code/random")
383  ("src/code/hash-table")
384  ("src/code/readtable")
385  ("src/code/pathname")
386  ("src/compiler/lexenv")
387
388  ;; KLUDGE: Much stuff above here is the type system and/or the INFO
389  ;; system, not really the compiler proper. It might be easier to
390  ;; understand the system if those things were split off into packages
391  ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
392
393  ;; In classic CMU CL (re)build order, these were done later, but
394  ;; in building from scratch, these must be loaded before
395  ;; "compiler/generic/objdef" in order to allow forms like
396  ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
397  ("src/compiler/fndb")
398  ("src/compiler/generic/vm-fndb")
399
400  ("src/compiler/generic/objdef")
401
402  ("src/compiler/generic/interr")
403
404  ("src/compiler/bit-util")
405
406  ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
407  ("src/compiler/early-assem") 
408
409  ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
410  ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
411  ;; before "compiler/main.lisp" so that those can be coded efficiently
412  ;; (and so that they don't cause lots of annoying compiler warnings
413  ;; about undefined types). 
414  ("src/compiler/generic/core")
415
416  ("src/code/load")
417
418  ("src/code/fop") ; needs macros from code/load.lisp
419
420  ("src/compiler/ctype")
421  ("src/compiler/disassem")
422  ("src/compiler/assem")
423
424  ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
425
426  ;; Compiling this requires fop definitions from code/fop.lisp and
427  ;; trace table definitions from compiler/trace-table.lisp.
428  ("src/compiler/dump"
429   ;; FIXME: When building sbcl-0.pre7.14.flaky4.5 under sbcl-0.6.12.1
430   ;; with :SB-SHOW on the target *FEATURES* list, cross-compilation of
431   ;; this file gives a WARNING in HEXSTR,
432   ;;   Lisp error during constant folding:
433   ;;   Argument X is not a REAL: NIL
434   ;; This seems to come from DEF!MACRO %WITH-ARRAY-DATA-MACRO code
435   ;; which looks like
436   ;;     (cond (,end
437   ;;            (unless (or ,unsafe? (<= ,end ,size))
438   ;;              ..))
439   ;;           ..)
440   ;; where the system is trying to constant-fold the <= form when the
441   ;; ,END binding is known to be NIL at compile time. Since the <= form 
442   ;; is unreachable in that case, this shouldn't be signalling a WARNING;
443   ;; but as long as it is, we have to ignore it in order to go on.
444   :ignore-failure-p)
445
446  ("src/compiler/main") ; needs DEFSTRUCT FASL-OUTPUT from dump.lisp
447  ("src/compiler/target-main" :not-host)
448  ("src/compiler/ir1tran")
449  ("src/compiler/ir1-translators")
450  ("src/compiler/ir1util")
451  ("src/compiler/ir1report")
452  ("src/compiler/ir1opt")
453
454  ;; Compiling this file requires the macros SB!ASSEM:EMIT-LABEL and
455  ;; SB!ASSEM:EMIT-POST-IT, defined in assem.lisp.
456  ("src/compiler/late-vmdef")
457
458  ("src/compiler/ir1final")
459  ("src/compiler/array-tran")
460  ("src/compiler/seqtran")
461  ("src/compiler/typetran")
462  ("src/compiler/generic/vm-typetran")
463  ("src/compiler/float-tran")
464  ("src/compiler/saptran")
465  ("src/compiler/srctran")
466  ("src/compiler/locall")
467  ("src/compiler/dfo")
468  ("src/compiler/checkgen")
469  ("src/compiler/constraint")
470  ("src/compiler/physenvanal")
471
472  ("src/compiler/tn")
473  ("src/compiler/life")
474
475  ("src/code/debug-info")
476
477  ("src/compiler/debug-dump")
478  ("src/compiler/generic/utils")
479  ("src/assembly/assemfile")
480
481  ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
482
483  ("src/compiler/target/insts")
484  ("src/compiler/target/macros")
485
486  ("src/assembly/target/support")
487
488  ("src/compiler/target/move")
489  ("src/compiler/target/float")
490  ("src/compiler/target/sap")
491  ("src/compiler/target/system")
492  ("src/compiler/target/char")
493  ("src/compiler/target/memory")
494  ("src/compiler/target/static-fn")
495  ("src/compiler/target/arith")
496  ("src/compiler/target/subprim")
497
498  ("src/compiler/target/debug")
499  ("src/compiler/target/c-call")
500  ("src/compiler/target/cell")
501  ("src/compiler/target/values")
502  ("src/compiler/target/alloc")
503  ("src/compiler/target/call")
504  ("src/compiler/target/nlx")
505  ("src/compiler/target/show")
506  ("src/compiler/target/array"
507   ;; KLUDGE: Compiling this file raises alarming warnings of the form
508   ;;    Argument FOO to VOP CHECK-BOUND has SC restriction
509   ;;    DESCRIPTOR-REG which is not allowed by the operand type:
510   ;;      (:OR POSITIVE-FIXNUM)
511   ;; This seems not to be something that I broke, but rather a "feature"
512   ;; inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
513   ;; Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
514   ;; these warnings are severe enough that they would ordinarily abort
515   ;; compilation, for now we blithely ignore them and press on to more
516   ;; pressing problems. Someday, though, it would be nice to figure out
517   ;; what the problem is and fix it.. -- WHN 19990323
518   :ignore-failure-p)
519  ("src/compiler/target/pred")
520  ("src/compiler/target/type-vops")
521
522  ("src/assembly/target/assem-rtns" :assem)
523  ("src/assembly/target/array"      :assem)
524  ("src/assembly/target/arith"      :assem)
525  ("src/assembly/target/alloc"      :assem)
526
527  ("src/compiler/pseudo-vops")
528
529  ("src/compiler/aliencomp")
530
531  ("src/compiler/ltv")
532  ("src/compiler/gtn")
533  ("src/compiler/ltn")
534  ("src/compiler/stack")
535  ("src/compiler/control")
536  ("src/compiler/entry")
537  ("src/compiler/ir2tran")
538
539  ("src/compiler/generic/vm-ir2tran")
540
541  ("src/compiler/copyprop")
542  ("src/compiler/represent")
543  ("src/compiler/generic/vm-tran")
544  ("src/compiler/pack")
545  ("src/compiler/codegen")
546  ("src/compiler/debug")
547
548  #!+sb-dyncount ("src/compiler/dyncount")
549  #!+sb-dyncount ("src/code/dyncount")
550
551  ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
552  ("src/code/format-time")
553
554  ;; needed by various unhappy-path cases in the cross-compiler
555  ("src/code/error")
556
557  ;; This wasn't in classic CMU CL "comcom.lisp", but it has some stuff
558  ;; that Python-as-cross-compiler has turned out to need.
559  ("src/code/macroexpand")
560
561  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
562  ;; files which depend in some way (directly or indirectly) on stuff
563  ;; compiled as part of the compiler
564
565  ("src/code/late-extensions") ; needs condition system
566  ("src/compiler/generic/target-core" :not-host) ; uses stuff from
567                                                 ;   "compiler/generic/core"
568
569  ("src/code/eval"              :not-host) ; uses INFO, wants compiler macro
570  ("src/code/target-sap"        :not-host) ; uses SAP-INT-TYPE
571  ("src/code/target-package"    :not-host) ; needs "code/package"
572  ("src/code/target-random"     :not-host) ; needs "code/random"
573  ("src/code/target-hash-table" :not-host) ; needs "code/hash-table"
574  ("src/code/reader"            :not-host) ; needs "code/readtable"
575  ("src/code/target-pathname"   :not-host) ; needs "code/pathname"
576  ("src/code/filesys"           :not-host) ; needs HOST from "code/pathname"
577  ("src/code/save"              :not-host) ; uses the definition of PATHNAME
578                                           ;   from "code/pathname"
579  ("src/code/sharpm"            :not-host) ; uses stuff from "code/reader"
580
581  ;; defines SB!DI:DO-DEBUG-FUN-BLOCKS, needed by target-disassem.lisp
582  ("src/code/debug-int" :not-host)
583
584  ;; target-only assemblerish stuff
585  ("src/compiler/target-disassem"     :not-host)
586  ("src/compiler/target/target-insts" :not-host)
587
588  ("src/code/debug" :not-host)
589
590  ;; These can't be compiled until CONDITION and DEFINE-CONDITION
591  ;; are defined, and they also use SB-DEBUG:*STACK-TOP-HINT*.
592  ("src/code/parse-defmacro-errors" :not-host)
593
594  ("src/code/bit-bash"    :not-host) ; needs %NEGATE from assembly/target/arith
595
596  ("src/code/target-load" :not-host) ; needs specials from code/load.lisp
597
598  ;; FIXME: Does this really need stuff from compiler/dump.lisp?
599  ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
600
601  ("src/code/cold-init" :not-host ; needs (SETF EXTERN-ALIEN) macroexpansion
602   ;; FIXME: When building sbcl-0.pre7.14.flaky4.5 under sbcl-0.6.12.1
603   ;; with :SB-SHOW on the target *FEATURES* list, cross-compilation of
604   ;; this file gives a WARNING in HEXSTR,
605   ;;   Lisp error during constant folding:
606   ;;   Argument X is not a REAL: NIL
607   ;; This seems to come from DEF!MACRO %WITH-ARRAY-DATA-MACRO code
608   ;; which looks like
609   ;;     (cond (,end
610   ;;            (unless (or ,unsafe? (<= ,end ,size))
611   ;;              ..))
612   ;;           ..)
613   ;; where the system is trying to constant-fold the <= form when the
614   ;; ,END binding is known to be NIL at compile time. Since the <= form 
615   ;; is unreachable in that case, this shouldn't be signalling a WARNING;
616   ;; but as long as it is, we have to ignore it in order to go on.
617   :ignore-failure-p)
618
619  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
620  ;; target macros and DECLAIMs installed at build-the-cross-compiler time
621
622  ;; Declare all target special variables defined by ANSI now, so that
623  ;; we don't have to worry about any of them being bound incorrectly
624  ;; when the compiler processes code which appears before the appropriate
625  ;; DEFVAR or DEFPARAMETER.
626  ("src/code/cl-specials")
627
628  ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
629  ;; for them
630  ("src/code/defboot")
631  ("src/code/destructuring-bind")
632  ("src/code/early-setf")
633  ("src/code/macros")
634  ("src/code/loop")
635  ("src/code/late-setf")
636
637  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
638
639  ;; other target-code-building stuff which can't be processed until
640  ;; machinery like SB!XC:DEFMACRO exists
641
642  ("src/code/late-format") ; needs SB!XC:DEFMACRO
643  ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
644  ("src/code/signal")
645  ("src/code/late-defbangmethod"))