Fix make-array transforms.
[sbcl.git] / build-order.lisp-expr
1 ;;;; -*- Lisp -*-
2
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
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.
11
12 ;;; a linear ordering of system sources which works both to
13 ;;; compile/load the cross-compiler under the host Common Lisp and
14 ;;; then to cross-compile the complete system into the
15 ;;; under-construction target SBCL
16 ;;;
17 ;;; The keyword flags (:NOT-HOST, :NOT-TARGET, :ASSEM...) are
18 ;;; documented in the code which implements their effects. (As of
19 ;;; sbcl-0.7.10, the comments are on DEFPARAMETER *EXPECTED-STEM-FLAGS*
20 ;;; in src/cold/shared.lisp.)
21 ;;;
22 ;;; Of course, it'd be very nice to have this be a dependency DAG
23 ;;; instead, so that we could do automated incremental recompilation.
24 ;;; But the dependencies are varied and subtle, and it'd be extremely
25 ;;; difficult to extract them automatically, and it'd be extremely
26 ;;; tedious and error-prone to extract them manually, so we don't
27 ;;; extract them. (It would be nice to fix this someday. The most
28 ;;; feasible approach that I can think of would be to make the
29 ;;; dependencies work on a package level, not an individual file
30 ;;; level. Doing it at the package level would make the granularity
31 ;;; coarse enough that it would probably be pretty easy to maintain
32 ;;; the dependency information manually, and the brittleness of the
33 ;;; package system would help make most violations of the declared
34 ;;; dependencies obvious at build time. -- WHN 20000803
35 (
36  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
37  ;;; miscellaneous
38  ("src/code/cross-early" :not-target)
39
40  ;; This comes early because it's useful for debugging everywhere.
41  ("src/code/show")
42
43  ;; This comes as early as possible, so that we catch the source locations
44  ;; for everything.
45  ("src/code/early-source-location")
46
47  ("src/code/early-constants")
48
49  ;; This comes early because the cross-compilation host's backquote
50  ;; logic can expand into something which can't be executed on the
51  ;; target Lisp (e.g. in CMU CL where it expands into internal
52  ;; functions like BACKQ-LIST), and by replacing the host backquote
53  ;; logic with our own as early as possible, we minimize the chance of
54  ;; any forms referring to cross-compilation host internal functions
55  ;; leaking into target SBCL code.
56  ("src/code/backq")
57
58  ;; It's difficult to be too early with a DECLAIM SPECIAL (or DEFVAR
59  ;; or whatever) thanks to the sullenly-do-the-wrong-thing semantics
60  ;; of CL special binding when the variable is undeclared.
61  ("src/code/globals" :not-host)
62
63  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
64  ;; various DEFSETFs and/or other DEFMACROish things, defined as early as
65  ;; possible so we don't need to fiddle with any subtleties of defining them
66  ;; before any possible use
67
68  ;; KLUDGE: It would be nice to reimplement most or all of these as
69  ;; functions (possibly inlined functions) so that we wouldn't need to
70  ;; worry so much about forcing them all to be defined before any possible
71  ;; use. It might be pretty tedious, though, working through any
72  ;; transforms and translators and optimizers and so forth to make sure
73  ;; that they can handle the change. -- WHN 19990919
74  ("src/code/defsetfs")
75
76  ("src/code/cold-init-helper-macros")
77
78  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
79  ;;; cross-compiler-only replacements for stuff which in target Lisp would be
80  ;;; supplied by basic machinery
81
82  ("src/code/cross-misc"  :not-target)
83  ("src/code/cross-char"  :not-target)
84  ("src/code/cross-byte"  :not-target)
85  ("src/code/cross-boole" :not-target)
86  ("src/code/cross-float" :not-target)
87  ("src/code/cross-io"    :not-target)
88  ("src/code/cross-sap"   :not-target)
89  ("src/code/cross-thread" :not-target)
90  ("src/code/cross-make-load-form" :not-target)
91  ("src/code/cross-condition" :not-target)
92
93  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
94  ;;; stuff needed early both in cross-compilation host and in target Lisp
95
96  ("src/code/uncross")
97  ("src/code/primordial-type")
98  ("src/code/early-defbangmethod")
99
100  ("src/code/defbangtype")
101  ("src/code/defbangmacro")
102  ("src/code/defbangconstant")
103
104  ("src/code/primordial-extensions")
105
106  ;; comes early so that stuff can reason about function names
107  ("src/code/function-names")
108
109  ;; for various constants e.g. SB!XC:MOST-POSITIVE-FIXNUM and
110  ;; SB!VM:N-LOWTAG-BITS, needed by "early-objdef" and others
111  ("src/compiler/generic/parms")
112  ("src/compiler/target/parms")
113  ("src/compiler/generic/early-vm")
114  ("src/compiler/generic/early-objdef")
115  ("src/code/early-array") ; needs "early-vm" numbers
116
117  ("src/code/early-extensions") ; on host for COLLECT, SYMBOLICATE, etc.
118  ("src/code/parse-body")       ; on host for PARSE-BODY
119  ("src/code/parse-defmacro")   ; on host for PARSE-DEFMACRO
120  ("src/compiler/deftype")      ; on host for SB!XC:DEFTYPE
121  ("src/compiler/defconstant")
122  ("src/code/early-alieneval")  ; for funs and vars needed at build and run time
123
124  ("src/code/specializable-array")
125
126  ("src/code/early-cl")
127  ("src/code/early-fasl")
128
129  ;; mostly needed by stuff from comcom, but also used by "x86-vm"
130  ("src/code/debug-var-io")
131
132  ("src/code/early-thread")
133  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
134  ;;; basic machinery for the target Lisp. Note that although most of these
135  ;;; files are flagged :NOT-HOST, a few might not be.
136
137  ("src/code/target-defbangmethod" :not-host)
138
139  ("src/code/early-print" :not-host)
140  ("src/code/early-pprint" :not-host)
141  ("src/code/early-impl" :not-host)
142
143  ("src/code/target-extensions" :not-host)
144
145  ;; Needed before the first use of WITH-SINGLE-PACKAGE-LOCKED-ERROR.
146  ("src/code/early-package" :not-host)
147
148  ("src/code/early-defstructs" :not-host) ; gotta-be-first DEFSTRUCTs
149
150  ("src/code/defbangstruct")
151
152  ("src/code/unportable-float")
153
154  ("src/code/funutils" :not-host)
155
156  ;; This needs DEF!STRUCT, and is itself needed early so that structure
157  ;; accessors and inline functions defined here can be compiled inline
158  ;; later. (Avoiding full calls not only increases efficiency, but also
159  ;; avoids some cold init issues involving full calls to structure
160  ;; accessors.)
161  ("src/code/type-class")
162
163  ("src/code/ansi-stream" :not-host)
164
165  ("src/code/sysmacs" :not-host)
166
167  ;; "assembly/assemfile" was here in the sequence inherited from
168  ;; CMU CL worldcom.lisp, but also appears later in the sequence
169  ;; inherited from CMU CL comcom.lisp. We shouldn't need two versions,
170  ;; so I've deleted the one here. -- WHN 19990620
171
172  ("src/code/target-error" :not-host)
173
174  ("src/compiler/early-backend")
175  ;; "src/code/toplevel.lisp" si the first to need this. It's generated
176  ;; automatically by grovel_headers.c, i.e. it's not in CVS.
177  ("output/stuff-groveled-from-headers" :not-host)
178
179  ;; a comment from classic CMU CL:
180  ;;   "These guys can supposedly come in any order, but not really.
181  ;;    Some are put at the end so that macros don't run interpreted
182  ;;    and stuff."
183  ;; Dunno exactly what this meant or whether it still holds. -- WHN 19990803
184  ;; FIXME: more informative and up-to-date comment?
185  ("src/code/kernel"      :not-host)
186  ("src/code/toplevel"    :not-host)
187  ("src/code/cold-error"  :not-host)
188  ("src/code/fdefinition" :not-host)
189  ;; FIXME: Figure out some way to make the compiler macro for INFO
190  ;; available for compilation of "code/fdefinition".
191
192  ;; In classic CMU CL, code/type was here. I've since split that into
193  ;; lots of smaller pieces, some of which are here and some of which
194  ;; are handled later in the sequence, when the cross-compiler is
195  ;; built. -- WHN 19990620
196  ("src/code/target-type" :not-host)
197
198  ("src/code/pred" :not-host)
199
200  ("src/code/target-alieneval" :not-host)
201  ("src/code/target-c-call"    :not-host)
202  ("src/code/target-allocate"  :not-host)
203
204  ;; This needs DEFINE-ALIEN-ROUTINE from target-alieneval.
205  ("src/code/misc-aliens" :not-host)
206
207  ("src/compiler/generic/vm-array")
208  ("src/code/array"         :not-host)
209  ("src/code/early-float"   :not-host)
210  ("src/code/target-sxhash" :not-host) ; needs most-fooative-foo-float constants
211
212  ("src/code/list"   :not-host)
213  ("src/code/seq"    :not-host) ; "code/seq" should come after "code/list".
214  ("src/code/coerce" :not-host)
215
216  ("src/code/string"     :not-host)
217  ("src/code/mipsstrops" :not-host)
218
219  ("src/code/early-time" :not-host)
220  ("src/code/unix" :not-host)
221  #!+win32 ("src/code/win32" :not-host)
222  #!+mach  ("src/code/mach"     :not-host)
223
224  ("src/code/common-os" :not-host)
225  #!+mach  ("src/code/mach-os"  :not-host)
226  #!+sunos ("src/code/sunos-os" :not-host)
227  #!+hpux  ("src/code/hpux-os"  :not-host)
228  #!+osf1  ("src/code/osf1-os"  :not-host)
229  #!+irix  ("src/code/irix-os"  :not-host)
230  #!+bsd   ("src/code/bsd-os"   :not-host)
231  #!+linux ("src/code/linux-os" :not-host)
232  #!+win32 ("src/code/win32-os" :not-host)
233
234  ;; sparc-vm and ppc-vm need sc-offset defined to get at internal
235  ;; error args. This file contains stuff previously in
236  ;; debug-info.lisp.  Should it therefore be :not-host?  -- CSR,
237  ;; 2002-02-05
238  ("src/code/sc-offset")
239
240  ;; KLUDGE: I'd prefer to have this done with a "code/target" softlink
241  ;; instead of a bunch of reader macros. -- WHN 19990308
242  #!+sparc ("src/code/sparc-vm" :not-host)
243  #!+hppa  ("src/code/hppa-vm"  :not-host)
244  #!+x86   ("src/code/x86-vm"   :not-host)
245  #!+x86-64("src/code/x86-64-vm"   :not-host)
246  #!+ppc   ("src/code/ppc-vm"   :not-host)
247  #!+alpha ("src/code/alpha-vm" :not-host)
248  #!+mips  ("src/code/mips-vm"  :not-host)
249
250  ;; FIXME: do we really want to keep this? -- CSR, 2002-08-31
251  #!+rt    ("src/code/rt-vm"    :not-host)
252
253  #!-win32 ("src/code/target-signal" :not-host) ; needs OS-CONTEXT-T from x86-vm
254  #!+win32 ("src/code/target-exception" :not-host)
255
256  ("src/code/symbol"     :not-host)
257  ("src/code/bignum"     :not-host)
258  ("src/code/numbers"    :not-host)
259  ("src/code/float-trap" :not-host)
260  ("src/code/float"      :not-host)
261  ("src/code/irrat"      :not-host)
262
263  ("src/code/char")
264  ("src/code/huffman")
265  ("src/code/target-char" :not-host)
266  ("src/code/target-misc" :not-host)
267  ("src/code/misc")
268
269  ("src/code/room"   :not-host)
270
271  ("src/code/stream"        :not-host)
272  ("src/code/print"         :not-host)
273  ("src/code/pprint"        :not-host)
274  ("src/code/early-format")
275  ("src/code/target-format" :not-host)
276  ("src/code/defpackage"    :not-host)
277  ("src/code/pp-backq"      :not-host)
278
279  ("src/code/error-error" :not-host) ; needs WITH-STANDARD-IO-SYNTAX macro
280
281  ("src/code/deadline" :not-host)
282  ("src/code/serve-event" :not-host)
283  ("src/code/fd-stream"   :not-host)
284
285  ("src/code/module" :not-host)
286
287  ("src/code/interr" :not-host)
288
289  ("src/code/query"  :not-host)
290
291  ("src/code/sort"  :not-host)
292  ("src/code/time"  :not-host)
293  ("src/code/timer" :not-host)
294  ("src/code/weak"  :not-host)
295  ("src/code/final" :not-host)
296
297  ("src/code/setf-funs" :not-host)
298
299  ("src/code/stubs" :not-host)
300
301  ("src/code/exhaust" :not-host)
302
303  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
304  ;;; compiler (and a few miscellaneous files whose dependencies make it
305  ;;; convenient to stick them here)
306
307  ("src/compiler/early-c")
308  ("src/compiler/policy")
309  ("src/compiler/policies")
310  ("src/code/typedefs")
311
312  ;; ("src/code/defbangmacro" was here until sbcl-0.6.7.3.)
313
314  ("src/compiler/macros")
315  ("src/compiler/generic/vm-macs")
316
317  ;; needed by "compiler/vop"
318  ("src/compiler/sset")
319
320  ;; for e.g. BLOCK-ANNOTATION, needed by "compiler/vop"
321  ("src/compiler/node")
322
323  ;; for e.g. PRIMITIVE-TYPE, needed by "vmdef"
324  ("src/compiler/vop")
325
326  ;; needed by "vm" and "primtype"
327  ("src/compiler/backend")
328
329  ;; for e.g. MAX-VOP-TN-REFS, needed by "meta-vmdef"
330  ("src/compiler/vmdef")
331
332  ;; needs "backend"
333  ("src/compiler/target/backend-parms")
334
335  ;; for INFO and SB!XC:MACRO-FUNCTION, needed by defmacro.lisp
336  ("src/compiler/globaldb")
337  ("src/compiler/info-functions")
338
339  ("src/code/force-delayed-defbangconstants")
340  ("src/code/defmacro")
341  ("src/code/force-delayed-defbangmacros")
342
343  ("src/compiler/late-macros")
344
345  ;; for e.g. !DEF-PRIMITIVE-TYPE, needed by primtype.lisp, and
346  ;; DEFINE-STORAGE-CLASS, needed by target/vm.lisp
347  ("src/compiler/meta-vmdef")
348
349  ;; for e.g. DESCRIPTOR-REG, needed by primtype.lisp
350  ("src/compiler/target/vm")
351  ("src/code/xset")
352  ;; for e.g. SPECIFIER-TYPE, needed by primtype.lisp
353  ("src/code/early-type")
354
355  ;; FIXME: Classic CMU CL had (OPTIMIZE (SAFETY 2) (DEBUG 2) declared
356  ;; around the compilation of "code/class". Why?
357  ("src/code/class")
358
359  ;; The definition of CONDITION-CLASS depends on SLOT-CLASS, defined
360  ;; in class.lisp.
361  ("src/code/condition" :not-host)
362
363  ("src/compiler/generic/primtype")
364
365  ;; the implementation of the compiler-affecting part of forms like
366  ;; DEFMACRO and DEFTYPE; must be loaded before we can start
367  ;; defining types
368  ("src/compiler/parse-lambda-list")
369
370  ;; for DEFSTRUCT ALIEN-TYPE, needed by host-type.lisp
371  ("src/code/host-alieneval")
372
373  ;; can't be done until definition of e.g. DEFINE-ALIEN-TYPE-CLASS in
374  ;; host-alieneval.lisp
375  ("src/code/host-c-call")
376
377  ;; SB!XC:DEFTYPE is needed in order to compile late-type
378  ;; in the host Common Lisp, and in order to run, it needs
379  ;; %COMPILER-DEFTYPE.
380  ("src/compiler/compiler-deftype")
381
382  ;; These appear here in the build sequence because they require
383  ;;   * the macro INFO, defined in globaldb.lisp, and
384  ;;   * the function PARSE-DEFMACRO, defined in parse-defmacro.lisp,
385  ;; and because they define
386  ;;   * the function SPECIFIER-TYPE, which is used in fndb.lisp.
387  ("src/code/late-type")
388  ("src/code/deftypes-for-target")
389
390  ;; defines IR1-ATTRIBUTES macro, needed by proclaim.lisp
391  ("src/compiler/knownfun")
392  ("src/compiler/constantp")
393
394  ;; needs FUN-INFO structure slot setters, defined in knownfun.lisp
395  ("src/compiler/fun-info-funs")
396
397  ;; stuff needed by "code/defstruct"
398  ("src/code/cross-type" :not-target)
399  ("src/compiler/generic/vm-type")
400  ("src/compiler/proclaim")
401
402  ("src/code/class-init")
403  ("src/code/typecheckfuns")
404
405  ;; The DEFSTRUCT machinery needs SB!XC:SUBTYPEP, defined in
406  ;; "code/late-type", and SB!XC:TYPEP, defined in "code/cross-type",
407  ;; and SPECIALIZE-ARRAY-TYPE, defined in "compiler/generic/vm-type",
408  ;; and SB!XC:PROCLAIM, defined in "src/compiler/proclaim"
409  ("src/code/defstruct")
410  ("src/code/target-defstruct" :not-host)
411
412  ;; ALIEN-VALUE has to be defined as a class (done by DEFSTRUCT
413  ;; machinery) before we can set its superclasses here.
414  ("src/code/alien-type")
415
416  ;; This needs not just the SB!XC:DEFSTRUCT machinery, but also
417  ;; the TYPE= stuff defined in late-type.lisp, and the
418  ;; CHECK-FUN-NAME defined in proclaim.lisp.
419  ("src/code/force-delayed-defbangstructs")
420
421  ;; early-full-eval uses !DEFSTRUCT-WITH-ALTERNATE-METACLASS and
422  ;; DEF!METHOD.  It split out from the rest of full-eval because
423  ;; defstruct/metaclass fun makes it unslammable, and to define
424  ;; INTERPRETED-FUNCTION before it is used in compiler/main and in the
425  ;; definition of the COMPILED-FUNCTION type.
426  #!+sb-eval
427  ("src/code/early-full-eval")
428
429  ("src/code/typep" :not-host)
430
431  ("src/compiler/compiler-error")
432
433  ("src/code/late-deftypes-for-target")
434
435  ("src/code/type-init")
436  ;; Now that the type system is initialized, fix up UNKNOWN types that
437  ;; have crept in.
438  ("src/compiler/fixup-type")
439
440  ;; These define target types needed by fndb.lisp.
441  ("src/code/package")
442  ("src/code/random")
443  ("src/code/hash-table")
444  ("src/code/readtable")
445  ("src/code/pathname")
446  ("src/code/host-pprint")
447  ("src/compiler/lexenv")
448
449  ;; KLUDGE: Much stuff above here is the type system and/or the INFO
450  ;; system, not really the compiler proper. It might be easier to
451  ;; understand the system if those things were split off into packages
452  ;; SB-TYPE and SB-INFO and built in their own sections. -- WHN 20000124
453
454  ;; In classic CMU CL (re)build order, these were done later, but
455  ;; in building from scratch, these must be loaded before
456  ;; "compiler/generic/objdef" in order to allow forms like
457  ;; (DEFINE-PRIMITIVE-OBJECT (..) (CAR ..) ..) to work.
458  ("src/compiler/fndb")
459  ("src/compiler/generic/vm-fndb")
460
461  ("src/compiler/generic/objdef")
462
463  ("src/compiler/generic/interr")
464
465  ("src/compiler/bit-util")
466
467  ;; This has ASSEMBLY-UNIT-related stuff needed by core.lisp.
468  ("src/compiler/early-assem")
469
470  ;; This has the BARRIER stuff that the threading support needs.
471  ("src/code/barrier")
472
473  ;; core.lisp contains DEFSTRUCT CORE-OBJECT, and "compiler/main.lisp"
474  ;; does lots of (TYPEP FOO 'CORE-OBJECT), so it's nice to compile this
475  ;; before "compiler/main.lisp" so that those can be coded efficiently
476  ;; (and so that they don't cause lots of annoying compiler warnings
477  ;; about undefined types).
478  ("src/compiler/generic/core")
479  ("src/code/thread")
480  ("src/code/load")
481
482  #!+linkage-table ("src/code/linkage-table" :not-host)
483  #!+os-provides-dlopen ("src/code/foreign-load" :not-host)
484  #!+(and os-provides-dlopen (not win32)) ("src/code/unix-foreign-load" :not-host)
485  #!+(and os-provides-dlopen win32) ("src/code/win32-foreign-load" :not-host)
486  ("src/code/foreign")
487
488  ("src/code/fop") ; needs macros from code/load.lisp
489
490  ("src/compiler/ctype")
491  ("src/compiler/disassem")
492  ("src/compiler/assem")
493
494  ("src/compiler/trace-table") ; needs EMIT-LABEL macro from compiler/assem.lisp
495
496  ("src/code/debug-info")
497  ;; Compiling this requires fop definitions from code/fop.lisp and
498  ;; trace table definitions from compiler/trace-table.lisp.
499  ("src/compiler/dump")
500
501  ("src/compiler/main") ; needs DEFSTRUCT FASL-OUTPUT from dump.lisp
502  ("src/compiler/xref")
503  ("src/code/source-location")
504  ("src/compiler/target-main" :not-host)
505  ("src/compiler/ir1tran")
506  ("src/compiler/ir1tran-lambda")
507  ("src/compiler/ir1-translators")
508  ("src/compiler/ir1util")
509  ("src/compiler/ir1report")
510  ("src/compiler/ir1opt")
511  ("src/compiler/loop")
512
513  ("src/compiler/ir1final")
514  ("src/compiler/array-tran")
515  ("src/compiler/seqtran")
516  ("src/compiler/typetran")
517  ("src/compiler/generic/vm-typetran")
518  ("src/compiler/float-tran")
519  ("src/compiler/saptran")
520  ("src/compiler/srctran")
521  ("src/compiler/bitops-derive-type")
522  ("src/compiler/generic/vm-tran")
523  ("src/compiler/locall")
524  ("src/compiler/dfo")
525  ("src/compiler/checkgen")
526  ("src/compiler/constraint")
527  ("src/compiler/physenvanal")
528
529  ("src/compiler/tn")
530  ("src/compiler/life")
531
532  ("src/compiler/debug-dump")
533  ("src/compiler/generic/utils")
534  ("src/compiler/fopcompile")
535
536  ("src/assembly/assemfile")
537
538  ;; Compiling this file requires the macros SB!ASSEM:EMIT-LABEL and
539  ;; SB!ASSEM:EMIT-POST-IT, defined in assem.lisp, and also possibly
540  ;; the definition of the LOCATION-INFO structure (if structures in
541  ;; the host lisp have setf expanders rather than setf functions).
542  ("src/compiler/late-vmdef")
543
544  ("src/compiler/fixup") ; for DEFSTRUCT FIXUP, used by insts.lisp
545
546  ("src/compiler/target/insts")
547  ("src/compiler/target/macros")
548  ("src/compiler/generic/early-type-vops")
549
550  ("src/assembly/target/support")
551
552  ("src/compiler/target/move")
553  ("src/compiler/target/float")
554  #!+sb-simd-pack
555  ("src/compiler/target/simd-pack")
556  ("src/compiler/target/sap")
557  ("src/compiler/target/system")
558  ("src/compiler/target/char")
559  ("src/compiler/target/memory")
560  ("src/compiler/target/static-fn")
561  ("src/compiler/target/arith"
562   ;; KLUDGE: for ppc and sparc this appears to be necessary, as it
563   ;; used to be for array VOPs for X86 until ca. 0.8.5.24 when CSR's
564   ;; patch for that architecture was finally committed
565   ;;
566   ;; old (0.8.5.23) comment on the array-VOP hack for X86:
567   ;; x Compiling this file for X86 raises alarming warnings of
568   ;; x the form
569   ;; x    Argument FOO to VOP CHECK-BOUND has SC restriction
570   ;; x    DESCRIPTOR-REG which is not allowed by the operand type:
571   ;; x      (:OR POSITIVE-FIXNUM)
572   ;; x This seems not to be something that I broke, but rather a "feature"
573   ;; x inherited from classic CMU CL. (Debian cmucl_2.4.8.deb compiling
574   ;; x Debian cmucl_2.4.8.tar.gz raises the same warning). Thus, even though
575   ;; x these warnings are severe enough that they would ordinarily abort
576   ;; x compilation, for now we blithely ignore them and press on to more
577   ;; x pressing problems. Someday, though, it would be nice to figure out
578   ;; x what the problem is and fix it.
579   #!+(or ppc) :ignore-failure-p)
580  ("src/code/cross-modular"  :not-target)
581
582  ("src/compiler/target/type-vops")
583
584  ("src/compiler/target/subprim")
585  ("src/compiler/target/debug")
586  ;; src/compiler/sparc/c-call contains a deftransform for
587  ;; %ALIEN-FUNCALL -- CSR
588  ("src/compiler/early-aliencomp")
589  ("src/compiler/target/c-call")
590  ("src/compiler/target/cell")
591  ("src/compiler/target/values")
592  ("src/compiler/target/alloc")
593  ("src/compiler/target/call")
594  ("src/compiler/target/nlx")
595  ("src/compiler/generic/late-nlx")
596  ("src/compiler/target/show")
597  ("src/compiler/target/array")
598  ("src/compiler/generic/array")
599  ("src/compiler/target/pred")
600
601  ("src/compiler/generic/late-type-vops")
602
603  ;; KLUDGE: The assembly files need to be compiled twice: once as
604  ;; normal lisp files, and once by sb-c:assemble-file.  We use a
605  ;; different suffix / "file type" for the :assem versions to make
606  ;; sure we don't scribble over anything we shouldn't.
607
608  ("src/assembly/target/assem-rtns")
609  ("src/assembly/target/array")
610  ("src/assembly/target/arith")
611  ("src/assembly/target/alloc")
612  ("src/assembly/target/assem-rtns" :assem :not-host)
613  ("src/assembly/target/array"      :assem :not-host)
614  ("src/assembly/target/arith"      :assem :not-host)
615  ("src/assembly/target/alloc"      :assem :not-host)
616
617  ("src/compiler/pseudo-vops")
618
619  ("src/compiler/aliencomp")
620
621  ("src/compiler/ltv")
622  ("src/compiler/gtn")
623  ("src/compiler/ltn")
624  ("src/compiler/stack")
625  ("src/compiler/control")
626  ("src/compiler/entry")
627  ("src/compiler/ir2tran")
628
629  ("src/compiler/generic/vm-ir2tran")
630
631  ("src/compiler/copyprop")
632  ("src/compiler/represent")
633  ("src/compiler/ir2opt")
634  ("src/compiler/pack")
635  ("src/compiler/pack-iterative")
636  ("src/compiler/codegen")
637  ("src/compiler/debug")
638
639  #!+sb-dyncount ("src/compiler/dyncount")
640  #!+sb-dyncount ("src/code/dyncount")
641
642  ;; needed by OPEN-FASL-OUTPUT, which is called by COMPILE-FILE
643  ("src/code/format-time")
644
645  ;; needed by various unhappy-path cases in the cross-compiler
646  ("src/code/error")
647
648  ;; This wasn't in classic CMU CL "comcom.lisp", but it has some stuff
649  ;; that Python-as-cross-compiler has turned out to need.
650  ("src/code/macroexpand")
651
652  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
653  ;; files which depend in some way (directly or indirectly) on stuff
654  ;; compiled as part of the compiler
655
656  ("src/code/late-extensions") ; needs condition system
657  ("src/compiler/generic/target-core" :not-host) ; uses stuff from
658                                                 ;   "compiler/generic/core"
659
660  ("src/code/eval"              :not-host) ; uses INFO, wants compiler macro
661  ("src/code/target-sap"        :not-host) ; uses SAP-INT type
662  ("src/code/target-package"    :not-host) ; needs "code/package"
663  ("src/code/target-random"     :not-host) ; needs "code/random"
664  ("src/code/bignum-random"     :not-host) ; needs "code/random" and
665                                           ;   "code/bignum"
666  ("src/code/target-hash-table" :not-host) ; needs "code/hash-table"
667  ("src/code/reader"            :not-host) ; needs "code/readtable"
668  ("src/code/target-stream"     :not-host) ; needs WHITESPACEP from "code/reader"
669  ("src/code/target-pathname"   :not-host) ; needs "code/pathname"
670  #!-win32
671  ("src/code/unix-pathname"     :not-host)
672  #!+win32
673  ("src/code/win32-pathname"    :not-host)
674  ("src/code/filesys"           :not-host) ; needs HOST from "code/pathname"
675
676  ("src/code/save"              :not-host) ; uses the definition of PATHNAME
677                                           ;   from "code/pathname"
678  ("src/code/sharpm"            :not-host) ; uses stuff from "code/reader"
679  ("src/code/alloc"             :not-host)
680
681  ("src/code/early-step")                  ; target-thread needs *STEP-OUT*
682
683  ("src/code/target-thread"     :not-host)
684
685  ;; defines SB!DI:DO-DEBUG-FUN-BLOCKS, needed by target-disassem.lisp
686  ("src/code/gc"     :not-host)
687  ("src/code/purify" :not-host)
688  ("src/code/debug-int" :not-host)
689
690  ;; target-only assemblerish stuff
691  ("src/compiler/target-disassem"     :not-host)
692  ("src/compiler/target/target-insts" :not-host)
693
694  ("src/code/debug" :not-host)
695
696  ("src/code/octets" :not-host)
697  ("src/code/external-formats/enc-basic" :not-host)
698  ("src/code/external-formats/enc-ebcdic" :not-host)
699  #!+sb-unicode
700  ("src/code/external-formats/enc-cyr" :not-host)
701  #!+sb-unicode
702  ("src/code/external-formats/enc-dos" :not-host)
703  #!+sb-unicode
704  ("src/code/external-formats/enc-iso" :not-host)
705  #!+sb-unicode
706  ("src/code/external-formats/enc-win" :not-host)
707  #!+sb-unicode
708  ("src/code/external-formats/enc-mac" :not-host)
709  #!+sb-unicode
710  ("src/code/external-formats/mb-util" :not-host)
711  #!+sb-unicode
712  ("src/code/external-formats/enc-cn-tbl" :not-host)
713  #!+sb-unicode
714  ("src/code/external-formats/enc-cn" :not-host)
715  #!+sb-unicode
716  ("src/code/external-formats/enc-jpn-tbl" :not-host)
717  #!+sb-unicode
718  ("src/code/external-formats/enc-jpn" :not-host)
719  #!+sb-unicode
720  ("src/code/external-formats/enc-ucs" :not-host)
721  #!+sb-unicode
722  ("src/code/external-formats/enc-utf" :not-host)
723
724  ;; The code here can't be compiled until CONDITION and
725  ;; DEFINE-CONDITION are defined and SB!DEBUG:*STACK-TOP-HINT* is
726  ;; declared special.
727  ("src/code/parse-defmacro-errors")
728
729  #!+sb-eval
730  ("src/code/full-eval"   :not-host) ; uses INFO, ARG-COUNT-ERROR
731
732  ("src/code/bit-bash"    :not-host) ; needs %NEGATE from assembly/target/arith
733
734  ("src/code/target-load" :not-host) ; needs special vars from code/load.lisp
735  ("src/compiler/target/sanctify" :not-host)
736
737  ;; FIXME: Does this really need stuff from compiler/dump.lisp?
738  ("src/compiler/target-dump" :not-host) ; needs stuff from compiler/dump.lisp
739
740  ("src/code/cold-init" :not-host) ; needs (SETF EXTERN-ALIEN) macroexpansion
741
742  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
743  ;; target macros and DECLAIMs installed at build-the-cross-compiler time
744
745  ;; Declare all target special variables defined by ANSI now, so that
746  ;; we don't have to worry about any of them being bound incorrectly
747  ;; when the compiler processes code which appears before the appropriate
748  ;; DEFVAR or DEFPARAMETER.
749  ("src/code/cl-specials")
750
751  ;; FIXME: here? earlier?  can probably be as late as possible.  Also
752  ;; maybe call it FORCE-DELAYED-PROCLAIMS?
753  ("src/compiler/late-proclaim")
754
755  ;; fundamental target macros (e.g. CL:DO and CL:DEFUN) and support
756  ;; for them
757  ("src/code/defboot")
758  ("src/code/destructuring-bind")
759  ("src/code/early-setf")
760  ("src/code/macros")
761  ("src/code/loop")
762  ("src/code/late-setf")
763  ("src/code/cas")
764  ("src/code/late-cas")
765
766  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
767  ;; other target-code-building stuff which can't be processed until
768  ;; machinery like SB!XC:DEFMACRO exists
769
770  ("src/code/late-format") ; needs SB!XC:DEFMACRO
771  ("src/code/sxhash") ; needs SB!XC:DEFINE-MODIFY-MACRO
772  ("src/code/signal")
773  ("src/code/late-defbangmethod")
774
775  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
776  ;; PCL-related stuff, which shouldn't need to be done earlier than
777  ;; anything else in cold build because after all it used to be
778  ;; postponed 'til warm init with no problems.
779
780  ("src/pcl/walk"))