0.pre7.28:
authorWilliam Harold Newman <william.newman@airmail.net>
Sun, 2 Sep 2001 14:17:37 +0000 (14:17 +0000)
committerWilliam Harold Newman <william.newman@airmail.net>
Sun, 2 Sep 2001 14:17:37 +0000 (14:17 +0000)
changed fasl file extension to .fasl
Since fasl file extensions aren't backend-dependent any more,
now they're controlled by *FASL-FILE-TYPE* instead
of *BACKEND-FASL-FILE-TYPE*.

NEWS
package-data-list.lisp-expr
src/code/early-fasl.lisp
src/code/stream.lisp
src/code/target-load.lisp
src/cold/shared.lisp
src/compiler/alpha/backend-parms.lisp
src/compiler/main.lisp
src/compiler/x86/backend-parms.lisp
tests/side-effectful-pathnames.test.sh
version.lisp-expr

diff --git a/NEWS b/NEWS
index 01d0e5b..131b5cd 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -813,6 +813,8 @@ changes in sbcl-0.6.13 relative to sbcl-0.6.12:
   fasl file version.
 
 changes in sbcl-0.7.0 relative to sbcl-0.6.13:
+* incompatible change: The default fasl file extension has changed
+  to ".fasl", for all architectures. (No longer ".x86f" and ".axpf".) 
 * There are new compiler optimizations for various functions: FIND,
   POSITION, FIND-IF, POSITION-IF, FILL, COERCE, TRUNCATE, FLOOR, and
   CEILING. Mostly these should be transparent, but there's one 
@@ -851,7 +853,7 @@ changes in sbcl-0.7.0 relative to sbcl-0.6.13:
   :SB-PROPAGATE-FUN-TYPE are no longer considered to be optional
   features. Instead, the code that they used to control is always
   built into the system.
-?? lots of tidying up internally: renaming things so that names are
+* lots of tidying up internally: renaming things so that names are
   more systematic and consistent, converting C macros to inline
   functions, systematizing indentation
 * The fasl file version number changed again, for any number of
@@ -863,7 +865,6 @@ planned incompatible changes in 0.7.x:
   instead of the old "5]", "5]]", "5]]]" sequence. (I was motivated
   to do this when squabbles between ILISP and SBCL left me
   very deeply nested in the debugger.)
-* The fasl file extension may change, perhaps to ".fasl".
 * The default output representation for unprintable ASCII characters 
   which, unlike e.g. #\Newline, don't have names defined in the 
   ANSI Common Lisp standard, may change to their ASCII symbolic
index 310b466..17d2eb8 100644 (file)
           "SB!EXT" "SB!INT" "SB!KERNEL" "SB!SYS")
     :export ("*ASSEMBLER-ROUTINES*"
              "+BACKEND-FASL-FILE-IMPLEMENTATION+"
-             "*BACKEND-FASL-FILE-TYPE*"
+             "*FASL-FILE-TYPE*"
              "CLOSE-FASL-OUTPUT"
              "DUMP-ASSEMBLER-ROUTINES"
              "DUMP-OBJECT"
index 1afac33..64a5f68 100644 (file)
 ;;; 15 = sbcl-0.6.12.33 changed the layout of STREAM
 ;;; 16 = sbcl-0.pre7.15 changed the layout of PRETTY-STREAM
 
-;;; the conventional file extension for fasl files on this
-;;; architecture, e.g. "x86f"
-(declaim (type (or simple-string null) *backend-fasl-file-type*))
-(defvar *backend-fasl-file-type* nil)
+;;; the conventional file extension for our fasl files
+(declaim (type simple-string *fasl-file-type*))
+(defvar *fasl-file-type* "fasl")
 
 ;;; This is a sort of pun that we inherited from CMU CL. For ordinary,
 ;;; non-byte-coded fasl files, the "implementation" is basically the
index 39fe0f4..f1a3998 100644 (file)
        (stream-fresh-line stream))))
 
 (defun write-string (string &optional (stream *standard-output*)
-                           &key (start 0) (end (length (the vector string))))
+                           &key (start 0) (end (length (the string string))))
 
   ;; FIXME: These SETFs don't look right to me. Looking at the
   ;; definition of "bounding indices" in the glossary of the ANSI
index ba43d46..7810634 100644 (file)
@@ -80,7 +80,7 @@
           (internal-load pathname truename if-does-not-exist verbose print
                          :binary))
          (t
-          (when (string= (pathname-type truename) *backend-fasl-file-type*)
+          (when (string= (pathname-type truename) *fasl-file-type*)
             (error "File has a fasl file type, but no fasl file header:~%  ~S"
                    (namestring truename)))
           (internal-load pathname truename if-does-not-exist verbose print
   (multiple-value-bind (src-pn src-tn)
       (try-default-type pathname *load-source-default-type*)
     (multiple-value-bind (obj-pn obj-tn)
-       (try-default-type pathname *backend-fasl-file-type*)
+       (try-default-type pathname *fasl-file-type*)
       (cond
        ((and obj-tn
             src-tn
index e165afb..959ecec 100644 (file)
 (defvar *host-obj-prefix*)
 (defvar *target-obj-prefix*)
 
-;;; suffixes for filename stems when cross-compiling. Everything should work
-;;; fine for any arbitrary string values here. With more work maybe we
-;;; could cause these automatically to become the traditional extensions for
-;;; whatever host and target architectures (e.g. ".x86f" or ".axpf") we're
-;;; currently doing. That would make it easier for a human looking at the
-;;; temporary files to figure out what they're for, but it's not necessary for
-;;; the compilation process to work, so we haven't bothered.
+;;; suffixes for filename stems when cross-compiling. Everything
+;;; should work fine for any arbitrary string values here. With more
+;;; work maybe we could cause these automatically to become the
+;;; traditional extensions for whatever host and target architectures
+;;; (e.g. ".x86f" or ".axpf") we're currently doing. That would make
+;;; it easier for a human looking at the temporary files to figure out
+;;; what they're for, but it's not necessary for the compilation
+;;; process to work, so we haven't bothered.
 (defvar *host-obj-suffix* ".lisp-obj")
 (defvar *target-obj-suffix* ".lisp-obj")
 
index 9149984..f92efe7 100644 (file)
@@ -17,7 +17,6 @@
 \f
 ;;;; compiler constants
 
-(setf *backend-fasl-file-type* "axpf")
 (defconstant +backend-fasl-file-implementation+ :alpha)
 
 (setf *backend-register-save-penalty* 3)
index 908270f..5383510 100644 (file)
 ;;; compiled files.
 (defun cfp-output-file-default (input-file)
   (let* ((defaults (merge-pathnames input-file *default-pathname-defaults*))
-        (retyped (make-pathname :type *backend-fasl-file-type*
-                                :defaults defaults)))
+        (retyped (make-pathname :type *fasl-file-type* :defaults defaults)))
     retyped))
        
 ;;; KLUDGE: Part of the ANSI spec for this seems contradictory:
index be2a8f4..4fcd8e6 100644 (file)
@@ -17,7 +17,6 @@
 \f
 ;;;; compiler constants
 
-(setf *backend-fasl-file-type* "x86f")
 (defconstant +backend-fasl-file-implementation+ :x86)
 
 (setf *backend-register-save-penalty* 3)
index d5c50fb..84ba3d7 100644 (file)
@@ -39,7 +39,7 @@ $SBCL <<EOF
   (load "TEST:$StudlyCapsStem")
   (assert (eq *loaded* :yes))
   (let ((compiled-file-name (namestring (compile-file "TEST:$StudlyCapsStem")))
-        (expected-file-name "$testdir/$testfilestem.x86f"))
+        (expected-file-name "$testdir/$testfilestem.fasl"))
     (format t "compiled-file-name=~S~%" compiled-file-name)
     (format t "expected-file-name=~S~%" expected-file-name)
     (assert (string= compiled-file-name expected-file-name)))
index e7457d9..eac204b 100644 (file)
@@ -18,4 +18,4 @@
 ;;; for internal versions, especially for internal versions off the
 ;;; main CVS branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
 
-"0.pre7.27"
+"0.pre7.28"