From: Christophe Rhodes Date: Mon, 9 Jan 2006 13:00:17 +0000 (+0000) Subject: 0.9.8.27: X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=04d819bb1a2e64de4e997203b9516229bb73c686;p=sbcl.git 0.9.8.27: Merge patch from James Bielman fixing self-build under Win32. ... a little bit of an accident ensued; I ran canonicalize-whitespace on .sh files, which seemed to work (except on wc.sh) until it scribbled all over make.sh, confusing the shell interpreter utterly. ... the resulting files have built the system, nevertheless. --- diff --git a/binary-distribution.sh b/binary-distribution.sh index 8266154..82aabbd 100755 --- a/binary-distribution.sh +++ b/binary-distribution.sh @@ -18,8 +18,8 @@ tar -cf $b-binary.tar \ $b/pubring.pgp \ $b/contrib/asdf-module.mk \ $b/contrib/vanilla-module.mk \ - `for dir in $b/contrib/*; do - if test -d $dir && test -f $dir/test-passed; then + `for dir in $b/contrib/*; do + if test -d $dir && test -f $dir/test-passed; then echo $dir fi done` diff --git a/clean.sh b/clean.sh index e09790d..6a6d5ba 100755 --- a/clean.sh +++ b/clean.sh @@ -40,7 +40,7 @@ done # are never in the sources, so must've been created # sbcl # the runtime environment, created by compiling C code -# sbcl.h +# sbcl.h # information about Lisp code needed to build the runtime environment, # created by running GENESIS # Config, target @@ -59,7 +59,7 @@ done # .#*, *.orig, .*.orig, *.rej # rubbish left behind by CVS updates # *.htm, *.html -# The system doc sources are mostly texinfo, plus various odds +# The system doc sources are mostly texinfo, plus various odds # and ends like docstrings embedded in .lisp sources; any HTML is # automatically-generated output. # depend @@ -73,34 +73,34 @@ done # test-passed # generated by automatic directory-test-thyself procedure find . \( \ - -type l -o \ - -name '*~' -o \ - -name '#*#' -o \ - -name '.#*' -o \ - -name '*.orig' -o \ - -name '.*.orig' -o \ + -type l -o \ + -name '*~' -o \ + -name '#*#' -o \ + -name '.#*' -o \ + -name '*.orig' -o \ + -name '.*.orig' -o \ -name '*.rej' -o \ - -name '?*.x86f' -o \ - -name '?*.axpf' -o \ - -name '?*.lbytef' -o \ - -name '?*.fasl' -o \ - -name 'core' -o \ - -name '?*.core' -o \ - -name '*.map' -o \ - -name '*.nm' -o \ - -name '*.host-obj' -o \ - -name '*.lisp-obj' -o \ - -name '*.target-obj' -o \ - -name '*.lib' -o \ - -name '*.tmp' -o \ - -name '*.lisp-temp' -o \ - -name '*.o' -o \ - -name '*.so' -o \ - -name 'a.out' -o \ - -name 'sbcl' -o \ - -name 'sbcl.h' -o \ - -name 'depend' -o \ - -name 'TAGS' -o \ - -name 'tags' -o \ - -name 'test-passed' -o \ - -name 'local-target-features.lisp-expr' \) -print | xargs rm -f + -name '?*.x86f' -o \ + -name '?*.axpf' -o \ + -name '?*.lbytef' -o \ + -name '?*.fasl' -o \ + -name 'core' -o \ + -name '?*.core' -o \ + -name '*.map' -o \ + -name '*.nm' -o \ + -name '*.host-obj' -o \ + -name '*.lisp-obj' -o \ + -name '*.target-obj' -o \ + -name '*.lib' -o \ + -name '*.tmp' -o \ + -name '*.lisp-temp' -o \ + -name '*.o' -o \ + -name '*.so' -o \ + -name 'a.out' -o \ + -name 'sbcl' -o \ + -name 'sbcl.h' -o \ + -name 'depend' -o \ + -name 'TAGS' -o \ + -name 'tags' -o \ + -name 'test-passed' -o \ + -name 'local-target-features.lisp-expr' \) -print | xargs rm -f diff --git a/distclean.sh b/distclean.sh index 861996f..41ed1b6 100644 --- a/distclean.sh +++ b/distclean.sh @@ -1,7 +1,7 @@ #!/bin/sh set -e -# a superset of clean.sh, cleaning up not only automatically +# a superset of clean.sh, cleaning up not only automatically # generated files but other things (e.g. customization files) # which shouldn't be in the distribution @@ -16,10 +16,10 @@ rm -rf customize-target-features.lisp # Since the CVS/ subdirectories on my (WHN) machine have CVS/Root # containing # :ext:wnewman@cvs.sbcl.sourceforge.net:/cvsroot/sbcl -# they're not useful for anyone else, so blow them away. (And even -# if we could set them up to refer to CVS in a way that someone else -# could use, perhaps referring to SourceForge anoncvs, what'd be the -# point? I'd expect a comfortable majority of those who want to do +# they're not useful for anyone else, so blow them away. (And even +# if we could set them up to refer to CVS in a way that someone else +# could use, perhaps referring to SourceForge anoncvs, what'd be the +# point? I'd expect a comfortable majority of those who want to do # CVS operations would be inclined to start with "cvs co" anyway.) find . \( -type d -a -name CVS \) -print | xargs rm -r diff --git a/doc/internals/make-top.sh b/doc/internals/make-top.sh index 2f307b8..9eb897e 100644 --- a/doc/internals/make-top.sh +++ b/doc/internals/make-top.sh @@ -1,14 +1,14 @@ #!/bin/sh -# After the ordeal, we went back to the Factory. Greenblatt said he +# After the ordeal, we went back to the Factory. Greenblatt said he # was gonna locate us in a cell. He said: "Kid, I'm gonna INTERN you in a # cell. I want your manual and your mouse." -# I said, "Greenblatt, I can understand your wantin' my manual, so +# I said, "Greenblatt, I can understand your wantin' my manual, so # I don't have any documentation about the cell, but what do you want my -# mouse for?" and he said, "Kid, we don't want any window system problems". +# mouse for?" and he said, "Kid, we don't want any window system problems". # I said, "Greenblatt, did you think I was gonna deexpose myself for # litterin'?" -# Greenblatt said he was makin' sure, and, friends, Greenblatt +# Greenblatt said he was makin' sure, and, friends, Greenblatt # was, 'cause he took out the left Meta-key so I couldn't double bucky the # rubout and cold-boot, and he took out the Inspector so I couldn't # click-left on Modify, set the PROCESS-WARM-BOOT-ACTION on the window, diff --git a/doc/manual/make-tempfiles.sh b/doc/manual/make-tempfiles.sh index 2f135a1..f520b22 100644 --- a/doc/manual/make-tempfiles.sh +++ b/doc/manual/make-tempfiles.sh @@ -54,11 +54,11 @@ DOCSTRINGDIR="${DOCSTRINGDIR:-docstrings/}" echo /creating docstring snippets from SBCL=\'$SBCLRUNTIME\' for packages \'$PACKAGES\' $SBCL <> $ltf printf '(' >> $ltf echo //guessing default target CPU architecture from host architecture -case `uname -m` in - *86) guessed_sbcl_arch=x86 ;; +case `uname -m` in + *86) guessed_sbcl_arch=x86 ;; i86pc) guessed_sbcl_arch=x86 ;; - *x86_64) guessed_sbcl_arch=x86-64 ;; + *x86_64) guessed_sbcl_arch=x86-64 ;; [Aa]lpha) guessed_sbcl_arch=alpha ;; sparc*) guessed_sbcl_arch=sparc ;; sun*) guessed_sbcl_arch=sparc ;; @@ -43,10 +111,10 @@ case `uname -m` in mips*) guessed_sbcl_arch=mips ;; *) # If we're not building on a supported target architecture, we - # we have no guess, but it's not an error yet, since maybe - # target architecture will be specified explicitly below. - guessed_sbcl_arch='' - ;; + # we have no guess, but it's not an error yet, since maybe + # target architecture will be specified explicitly below. + guessed_sbcl_arch='' + ;; esac echo //setting up CPU-architecture-dependent information @@ -56,35 +124,28 @@ if [ "$sbcl_arch" = "" ] ; then echo "can't guess target SBCL architecture, need SBCL_ARCH environment var" exit 1 fi -printf ":%s" "$sbcl_arch" >> $ltf +printf ":%s" "$sbcl_arch" >> $ltf for d in src/compiler src/assembly; do echo //setting up symlink $d/target original_dir=`pwd` + remove_dir_safely "$d/target" cd ./$d - if [ -h target ] ; then - rm target - elif [ -w target ] ; then - echo "I'm afraid to replace non-symlink $d/target with a symlink." - exit 1 - fi if [ -d $sbcl_arch ] ; then - ln -s $sbcl_arch target + link_or_copy $sbcl_arch target else - echo "missing sbcl_arch directory $PWD/$sbcl_arch" - exit 1 + echo "missing sbcl_arch directory $PWD/$sbcl_arch" + exit 1 fi cd $original_dir done echo //setting up symlink src/compiler/assembly -if [ -h src/compiler/assembly ] ; then - rm src/compiler/assembly -elif [ -w src/compiler/assembly ] ; then - echo "I'm afraid to replace non-symlink compiler/assembly with a symlink." - exit 1 -fi -ln -s ../assembly src/compiler/assembly +remove_dir_safely src/compiler/assembly +original_dir=`pwd` +cd src/compiler +link_or_copy ../assembly assembly +cd $original_dir echo //setting up OS-dependent information original_dir=`pwd` @@ -93,82 +154,78 @@ rm -f Config target-arch-os.h target-arch.h target-os.h target-lispregs.h # KLUDGE: these two logically belong in the previous section # ("architecture-dependent"); it seems silly to enforce this in terms # of the shell script, though. -- CSR, 2002-02-03 -ln -s $sbcl_arch-arch.h target-arch.h -ln -s $sbcl_arch-lispregs.h target-lispregs.h -case `uname` in - Linux) - printf ' :elf' >> $ltf - printf ' :linux' >> $ltf - sbcl_os="linux" - if [ $sbcl_arch = "x86-64" ]; then - ln -s Config.x86_64-linux Config - else - ln -s Config.$sbcl_arch-linux Config - fi - ln -s $sbcl_arch-linux-os.h target-arch-os.h - ln -s linux-os.h target-os.h - ;; - OSF1) - # it's changed name twice since it was called OSF/1: clearly - # the marketers forgot to tell the engineers about Digital Unix - # _or_ OSF/1 ... - printf ' :elf' >> $ltf - printf ' :osf1' >> $ltf - sbcl_os="osf1" - ln -s Config.$sbcl_arch-osf1 Config - ln -s $sbcl_arch-osf1-os.h target-arch-os.h - ln -s osf1-os.h target-os.h - ;; - *BSD) - printf ' :bsd' >> $ltf - ln -s $sbcl_arch-bsd-os.h target-arch-os.h - ln -s bsd-os.h target-os.h - case `uname` in - FreeBSD) - printf ' :elf' >> $ltf - printf ' :freebsd' >> $ltf - sbcl_os="freebsd" - ln -s Config.$sbcl_arch-freebsd Config - ;; - OpenBSD) - printf ' :elf' >> $ltf - printf ' :openbsd' >> $ltf - sbcl_os="openbsd" - ln -s Config.$sbcl_arch-openbsd Config - ;; - NetBSD) +link_or_copy $sbcl_arch-arch.h target-arch.h +link_or_copy $sbcl_arch-lispregs.h target-lispregs.h +case "$sbcl_os" in + linux) + printf ' :elf' >> $ltf + printf ' :linux' >> $ltf + if [ $sbcl_arch = "x86-64" ]; then + link_or_copy Config.x86_64-linux Config + else + link_or_copy Config.$sbcl_arch-linux Config + fi + link_or_copy $sbcl_arch-linux-os.h target-arch-os.h + link_or_copy linux-os.h target-os.h + ;; + osf1) + printf ' :elf' >> $ltf + printf ' :osf1' >> $ltf + link_or_copy Config.$sbcl_arch-osf1 Config + link_or_copy $sbcl_arch-osf1-os.h target-arch-os.h + link_or_copy osf1-os.h target-os.h + ;; + *bsd) + printf ' :bsd' >> $ltf + link_or_copy $sbcl_arch-bsd-os.h target-arch-os.h + link_or_copy bsd-os.h target-os.h + case "$sbcl_os" in + freebsd) + printf ' :elf' >> $ltf + printf ' :freebsd' >> $ltf + link_or_copy Config.$sbcl_arch-freebsd Config + ;; + openbsd) + printf ' :elf' >> $ltf + printf ' :openbsd' >> $ltf + link_or_copy Config.$sbcl_arch-openbsd Config + ;; + netbsd) printf ' :netbsd' >> $ltf - printf ' :elf' >> $ltf - sbcl_os="netbsd" - ln -s Config.$sbcl_arch-netbsd Config - ;; - *) - echo unsupported BSD variant: `uname` - exit 1 - ;; - esac - ;; - Darwin) - printf ' :mach-o' >> $ltf - printf ' :bsd' >> $ltf - sbcl_os="darwin" - ln -s $sbcl_arch-darwin-os.h target-arch-os.h - ln -s bsd-os.h target-os.h - printf ' :darwin' >> $ltf - ln -s Config.$sbcl_arch-darwin Config - ;; - SunOS) - printf ' :elf' >> $ltf + printf ' :elf' >> $ltf + link_or_copy Config.$sbcl_arch-netbsd Config + ;; + *) + echo unsupported BSD variant: `uname` + exit 1 + ;; + esac + ;; + darwin) + printf ' :mach-o' >> $ltf + printf ' :bsd' >> $ltf + link_or_copy $sbcl_arch-darwin-os.h target-arch-os.h + link_or_copy bsd-os.h target-os.h + printf ' :darwin' >> $ltf + link_or_copy Config.$sbcl_arch-darwin Config + ;; + sunos) + printf ' :elf' >> $ltf printf ' :sunos' >> $ltf - sbcl_os="sunos" - ln -s Config.$sbcl_arch-sunos Config - ln -s $sbcl_arch-sunos-os.h target-arch-os.h - ln -s sunos-os.h target-os.h - ;; + link_or_copy Config.$sbcl_arch-sunos Config + link_or_copy $sbcl_arch-sunos-os.h target-arch-os.h + link_or_copy sunos-os.h target-os.h + ;; + win32) + printf ' :win32' >> $ltf + link_or_copy Config.$sbcl_arch-win32 Config + link_or_copy $sbcl_arch-win32-os.h target-arch-os.h + link_or_copy win32-os.h target-os.h + ;; *) - echo unsupported OS type: `uname` - exit 1 - ;; + echo unsupported OS type: `uname` + exit 1 + ;; esac cd $original_dir @@ -198,7 +255,7 @@ if [ "$sbcl_arch" = "x86" ]; then printf ' :gencgc :stack-grows-downward-not-upward :c-stack-is-control-stack' >> $ltf printf ' :stack-allocatable-closures :alien-callbacks' >> $ltf if [ "$sbcl_os" = "linux" ] || [ "$sbcl_os" = "freebsd" ] || [ "$sbcl_os" = "netbsd" ] || [ "$sbcl_os" = "sunos" ]; then - printf ' :linkage-table' >> $ltf + printf ' :linkage-table' >> $ltf fi elif [ "$sbcl_arch" = "x86-64" ]; then printf ' :gencgc :stack-grows-downward-not-upward :c-stack-is-control-stack :linkage-table' >> $ltf @@ -233,13 +290,13 @@ elif [ "$sbcl_arch" = "ppc" -a "$sbcl_os" = "darwin" ]; then exit 1 fi elif [ "$sbcl_arch" = "sparc" ]; then - # Test the compiler in order to see if we are building on Sun + # Test the compiler in order to see if we are building on Sun # toolchain as opposed to GNU binutils, and write the appropriate - # FUNCDEF macro for assembler. No harm in running this on sparc-linux + # FUNCDEF macro for assembler. No harm in running this on sparc-linux # as well. sh tools-for-build/sparc-funcdef.sh > src/runtime/sparc-funcdef.h if [ "$sbcl_os" = "sunos" ] || [ "$sbcl_os" = "linux" ]; then - printf ' :linkage-table' >> $ltf + printf ' :linkage-table' >> $ltf fi printf ' :stack-allocatable-closures' >> $ltf elif [ "$sbcl_arch" = "alpha" ]; then diff --git a/make-genesis-2.sh b/make-genesis-2.sh index b760406..4b9973e 100644 --- a/make-genesis-2.sh +++ b/make-genesis-2.sh @@ -27,7 +27,7 @@ echo //entering make-genesis-2.sh # symbol table data on the C runtime. And we can get that symbol # data only after the C runtime has been built. Therefore, even # though we ran GENESIS earlier, we couldn't get it to make a .core -# file at that time; but we needed to run it earlier in order to +# file at that time; but we needed to run it earlier in order to # get to where we can write a .core file.) echo //loading and running GENESIS to create cold-sbcl.core $SBCL_XC_HOST < make-genesis-2.lisp diff --git a/make-target-1.sh b/make-target-1.sh index 4952416..34a885d 100644 --- a/make-target-1.sh +++ b/make-target-1.sh @@ -24,7 +24,7 @@ export LANG LC_ALL # # (This C build has to come after the first genesis in order to get # the sbcl.h the C build needs, and come before the second genesis in -# order to produce the symbol table file that second genesis needs. It +# order to produce the symbol table file that second genesis needs. It # could come either before or after running the cross compiler; that # doesn't matter.) echo //building runtime system and symbol table file diff --git a/make-target-contrib.sh b/make-target-contrib.sh index 3646a5c..899c19a 100644 --- a/make-target-contrib.sh +++ b/make-target-contrib.sh @@ -51,7 +51,7 @@ done for i in contrib/*; do test -d $i && test -f $i/Makefile || continue; # export INSTALL_DIR=$SBCL_HOME/`basename $i ` - test -f $i/test-passed && rm $i/test-passed + test -f $i/test-passed && rm $i/test-passed $GNUMAKE -C $i test && touch $i/test-passed done @@ -62,10 +62,10 @@ for dir in contrib/* do if [ -d "$dir" -a -f "$dir/Makefile" -a ! -f "$dir/test-passed" ]; then if $HEADER_HAS_BEEN_PRINTED; then - echo > /dev/null + echo > /dev/null else - echo "Failed contribs:" - HEADER_HAS_BEEN_PRINTED=true + echo "Failed contribs:" + HEADER_HAS_BEEN_PRINTED=true fi echo " `basename $dir`" fi diff --git a/make.sh b/make.sh index cb83c37..58907b8 100755 --- a/make.sh +++ b/make.sh @@ -33,7 +33,7 @@ set -e # endlessly for a programmer to help it out with input # on *DEBUG-IO* # "lisp -batch" to use an existing CMU CL binary as a cross-compilation host -# "lisp -noinit -batch" +# "lisp -noinit -batch" # to use an existing CMU CL binary as a cross-compilation host # when you have weird things in your .cmucl-init file # "openmcl --batch" @@ -50,7 +50,7 @@ set -e # optimizations (especially specializable arrays) that it doesn't # know how to implement how in a portable way. (Or maybe that wouldn't # require a second pass, just testing at build-the-cross-compiler time -# whether the cross-compilation host returns suitable values from +# whether the cross-compilation host returns suitable values from # UPGRADED-ARRAY-ELEMENT-TYPE?) LANG=C @@ -87,7 +87,7 @@ tools-for-build/canonicalize-whitespace # identify the target architecture). # On the host system: # SBCL_XC_HOST= sh make-host-1.sh -# Copy src/runtime/genesis/*.h from the host system to the target +# Copy src/runtime/genesis/*.h from the host system to the target # system. # On the target system: # sh make-target-1.sh @@ -112,7 +112,7 @@ NCONTRIBS=`find contrib -name Makefile -print | wc -l` NPASSED=`find contrib -name test-passed -print | wc -l` echo echo "The build seems to have finished successfully, including $NPASSED (out of $NCONTRIBS)" -echo "contributed modules. If you would like to run more extensive tests on" +echo "contributed modules. If you would like to run more extensive tests on" echo "the new SBCL, you can try:" echo echo " cd tests && sh ./run-tests.sh" @@ -127,7 +127,7 @@ echo " cd doc/manual && make" echo echo "To install SBCL (more information in INSTALL):" echo -echo " sh install.sh" +echo " sh install.sh" build_finished=`date` echo diff --git a/slam.sh b/slam.sh index cb86e73..8206767 100644 --- a/slam.sh +++ b/slam.sh @@ -22,7 +22,7 @@ set -e # This script is not a reliable way to build the system, but it is # fast.:-| It can be useful if you are trying to debug a low-level # problem, e.g. a problem in src/runtime/*.c or in -# src/code/cold-init.lisp. Soon, you'll find yourself wanting to +# src/code/cold-init.lisp. Soon, you'll find yourself wanting to # test a small change in a file compiled into cold-sbcl.core without # redoing the entire rebuild-the-system-from-scratch process. You may be # able to avoid a complete make-host-2.sh by just letting this script @@ -57,10 +57,10 @@ set -e # Mostly it looks as though such limitations aren't fixable without # the aforementioned rearchitecting or solving the halting problem. # -# To make this work, you need an after-xc.core file. To cause the +# To make this work, you need an after-xc.core file. To cause the # system to generate an after-xc.core file, you need # :SB-AFTER-XC-CORE in target features during an ordinary build. -# See the comments in base-target-features.lisp-expr for the +# See the comments in base-target-features.lisp-expr for the # recommended way to make that happen. ####################################################################### @@ -89,9 +89,9 @@ case "$HOST_TYPE" in ;; openmcl) LISP="openmcl" - INIT="-b" - CORE="-I" - ;; + INIT="-b" + CORE="-I" + ;; *) echo unknown host type: "$HOST_TYPE" echo should be one of "sbcl", "cmucl", or "clisp" exit 1 diff --git a/source-distribution.sh b/source-distribution.sh index 62efe12..d44c481 100755 --- a/source-distribution.sh +++ b/source-distribution.sh @@ -4,4 +4,4 @@ set -e # Create a source distribution. (You should run clean.sh first.) b=${1:?missing base directory name argument} -tar cf $b-source.tar $b +tar cf $b-source.tar $b diff --git a/src/runtime/Config.x86-win32 b/src/runtime/Config.x86-win32 index cebd135..2eac98b 100644 --- a/src/runtime/Config.x86-win32 +++ b/src/runtime/Config.x86-win32 @@ -25,15 +25,19 @@ OS_SRC = win32-os.c x86-win32-os.c os-common.c # (You *are* encouraged to design and implement a coherent stable # interface, though.:-| As far as I (WHN 2002-05-19) know, no one is # working on one and it would be a nice thing to have.) -OS_LINK_FLAGS = -Wl,--export-dynamic -OS_LIBS = +OS_LINK_FLAGS = -Wl,--export-dynamic,-mno-cygwin +OS_LIBS = -mno-cygwin GC_SRC = gencgc.c -CFLAGS = -g -Wall -O3 +CFLAGS = -g -Wall -O3 -mno-cygwin ASFLAGS = $(CFLAGS) -CPP = /opt/xmingw/bin/i386-mingw32msvc-cpp -CC = /opt/xmingw/bin/i386-mingw32msvc-gcc -LD = /opt/xmingw/bin/i386-mingw32msvc-ld -NM = /opt/xmingw/bin/i386-mingw32msvc-nm +CPP = cpp +CC = gcc +LD = ld +NM = nm + +# Nothing to do for after-grovel-headers. +.PHONY: after-grovel-headers +after-grovel-headers: diff --git a/tests/clocc-ansi.test.sh b/tests/clocc-ansi.test.sh index eb61318..87be861 100644 --- a/tests/clocc-ansi.test.sh +++ b/tests/clocc-ansi.test.sh @@ -20,7 +20,7 @@ # While most of SBCL is derived from the CMU CL system, the test # files (like this one) were written from scratch after the fork # from CMU CL. -# +# # This software is in the public domain and is provided with # absolutely no warranty. See the COPYING and CREDITS files for # more information. @@ -32,7 +32,7 @@ originalpwd=`pwd` if [ "$SBCL_CLOCC_ANSI_TEST" = "" ] ; then echo //punting clocc ansi-test because SBCL_CLOCC_ANSI_TEST is undefined exit 104 -else +else echo //going on to run clocc ansi-test in $SBCL_CLOCC_ANSI_TEST cd $SBCL_CLOCC_ANSI_TEST fi diff --git a/tests/clos.test.sh b/tests/clos.test.sh index 73ed705..47e91a8 100644 --- a/tests/clos.test.sh +++ b/tests/clos.test.sh @@ -6,7 +6,7 @@ # While most of SBCL is derived from the CMU CL system, the test # files (like this one) were written from scratch after the fork # from CMU CL. -# +# # This software is in the public domain and is provided with # absolutely no warranty. See the COPYING and CREDITS files for # more information. @@ -61,7 +61,7 @@ expect_load_error $tmpfilename # succession. cat > $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename < $tmpfilename <~%" - directory-pathname) + directory-pathname) (format t "~&~@~%" - directory-sorted-truenamestrings) + directory-sorted-truenamestrings) (format t "~&~@~%" - result-sorted-truenamestrings) + result-sorted-truenamestrings) (error "mismatch between DIRECTORY and expected result")))) (defun need-match (directory-pathname result-pathnames) "Require that (DIRECTORY DIRECTORY-PATHNAME) return RESULT-PATHNAMES @@ -156,34 +156,34 @@ Lisp filename syntax idiosyncrasies)." (need-match "./animal" '("animal/")) (need-match "animal/*.*" '("animal/invertebrate/" "animal/vertebrate/")) (need-match "animal/*/*.*" - '("animal/vertebrate/bird/" - "animal/vertebrate/mammal/" - "animal/vertebrate/snake/")) + '("animal/vertebrate/bird/" + "animal/vertebrate/mammal/" + "animal/vertebrate/snake/")) (need-match "plant/*.*" '("plant/kingsfoil" "plant/pipeweed")) (need-match "plant/**/*.*" '("plant/kingsfoil" "plant/pipeweed")) (need-match "plant/**/**/*.*" '("plant/kingsfoil" "plant/pipeweed")) (let ((vertebrates (mapcar (lambda (stem) - (concatenate 'string - "animal/vertebrate/" - stem)) - '("bird/" - "mammal/" - "mammal/bear/" "mammal/bear/grizzly" - "mammal/mythical/" "mammal/mythical/mermaid" - "mammal/mythical/unicorn" - "mammal/platypus" - "mammal/rodent/" "mammal/rodent/beaver" - "mammal/rodent/mouse" "mammal/rodent/rabbit" - "mammal/rodent/rat" - "mammal/ruminant/" "mammal/ruminant/cow" - "mammal/walrus" - "snake/" "snake/python")))) + (concatenate 'string + "animal/vertebrate/" + stem)) + '("bird/" + "mammal/" + "mammal/bear/" "mammal/bear/grizzly" + "mammal/mythical/" "mammal/mythical/mermaid" + "mammal/mythical/unicorn" + "mammal/platypus" + "mammal/rodent/" "mammal/rodent/beaver" + "mammal/rodent/mouse" "mammal/rodent/rabbit" + "mammal/rodent/rat" + "mammal/ruminant/" "mammal/ruminant/cow" + "mammal/walrus" + "snake/" "snake/python")))) (need-match "animal/vertebrate/**/*.*" vertebrates) (need-match "animal/vertebrate/mammal/../**/*.*" vertebrates) (need-match "animal/vertebrate/mammal/../**/**/*.*" vertebrates) #+nil (need-match "animal/vertebrate/mammal/mythical/../**/../**/*.*" - vertebrates)) + vertebrates)) (need-match "animal/vertebrate/**/robot.*" nil) (need-match "animal/vertebrate/mammal/../**/*.robot" nil) (need-match "animal/vertebrate/mammal/../**/robot/*.*" nil) diff --git a/tests/finalize.test.sh b/tests/finalize.test.sh index 5c7e4fe..3ba4997 100644 --- a/tests/finalize.test.sh +++ b/tests/finalize.test.sh @@ -19,12 +19,12 @@ ${SBCL:-sbcl} < /dev/null & (let ((junk (mapcar (lambda (_) (declare (ignore _)) (let ((x (gensym))) - (finalize x (lambda () - ;; cons in finalizer + (finalize x (lambda () + ;; cons in finalizer (setf *tmp* (make-list 10000)) - (incf *count*))) - x)) - (make-list 10000)))) + (incf *count*))) + x)) + (make-list 10000)))) (setf junk (foo junk)) (foo junk)) @@ -46,21 +46,21 @@ WAITED=0 echo "Waiting for SBCL to finish stress-testing finalizers" while true; do if [ -f finalize-test-passed ]; then - echo "OK" - rm finalize-test-passed - exit 104 # Success + echo "OK" + rm finalize-test-passed + exit 104 # Success elif [ -f finalize-test-failed ]; then - echo "Failed" - rm finalize-test-failed - exit 1 # Failure + echo "Failed" + rm finalize-test-failed + exit 1 # Failure fi sleep 1 WAITED=$(($WAITED+1)) if (($WAITED>60)); then - echo - echo "timeout, killing SBCL" - kill -9 $SBCL_PID - exit 1 # Failure, SBCL probably hanging in GC + echo + echo "timeout, killing SBCL" + kill -9 $SBCL_PID + exit 1 # Failure, SBCL probably hanging in GC fi done diff --git a/tests/run-program.test.sh b/tests/run-program.test.sh index 00399d1..b95931a 100644 --- a/tests/run-program.test.sh +++ b/tests/run-program.test.sh @@ -8,7 +8,7 @@ # While most of SBCL is derived from the CMU CL system, the test # files (like this one) were written from scratch after the fork # from CMU CL. -# +# # This software is in the public domain and is provided with # absolutely no warranty. See the COPYING and CREDITS files for # more information. @@ -22,10 +22,10 @@ export PATH ${SBCL:-sbcl} < /dev/null 2>&1 && ./$bin > /dev/null 2>&1 if [ "$?" = 104 ] then - printf " :$1" + printf " :$1" fi rm -f $bin } diff --git a/tools-for-build/grovel-headers.c b/tools-for-build/grovel-headers.c index 3a2b615..18af788 100644 --- a/tools-for-build/grovel-headers.c +++ b/tools-for-build/grovel-headers.c @@ -20,22 +20,27 @@ #include #include -#include +#ifdef _WIN32 + #include +#else + #include + #include + #include + #include + #ifdef __APPLE_CC__ + #include "../src/runtime/ppc-darwin-dlshim.h" + #include "../src/runtime/ppc-darwin-langinfo.h" + #else + #include + #include + #endif +#endif + #include -#include -#include -#include #include #include #include #include -#ifdef __APPLE_CC__ - #include "../src/runtime/ppc-darwin-dlshim.h" - #include "../src/runtime/ppc-darwin-langinfo.h" -#else - #include - #include -#endif #include "genesis/config.h" @@ -74,7 +79,9 @@ main(int argc, char *argv[]) ;;;; See the program \"grovel-headers.c\".\n\ \n\ "); - +#ifdef _WIN32 + printf (";;; This file is presently unused for the Windows version of sbcl.\n"); +#else printf("(in-package \"SB!ALIEN\")\n\n"); printf (";;;flags for dlopen()\n"); @@ -223,5 +230,6 @@ main(int argc, char *argv[]) defsignal("sigxcpu", SIGXCPU); defsignal("sigxfsz", SIGXFSZ); #endif +#endif // _WIN32 return 0; } diff --git a/tools-for-build/sparc-funcdef.sh b/tools-for-build/sparc-funcdef.sh index 406abac..80350bc 100644 --- a/tools-for-build/sparc-funcdef.sh +++ b/tools-for-build/sparc-funcdef.sh @@ -2,23 +2,23 @@ cd ./tools-for-build TMP=sparc-funcdef.S -SUN_FUNCDEF="#define FUNCDEF(x) .type x, #function" -GNU_FUNCDEF="#define FUNCDEF(x) .type x,@function" +SUN_FUNCDEF="#define FUNCDEF(x) .type x, #function" +GNU_FUNCDEF="#define FUNCDEF(x) .type x,@function" echo $SUN_FUNCDEF > $TMP # cribbed from ldso_stubs, just "some code" echo " -.globl ldso_stub__printf ; - FUNCDEF(ldso_stub__printf) ; -ldso_stub__printf: ; - sethi %hi(printf),%g1 ; - jmpl %g1+%lo(printf),%g0 ; - nop /* delay slot*/ ; -.Lprintfe1: ; - .size ldso_stub__printf,.Lprintfe1-ldso_stub__printf ;" >> $TMP +.globl ldso_stub__printf ; + FUNCDEF(ldso_stub__printf) ; +ldso_stub__printf: ; + sethi %hi(printf),%g1 ; + jmpl %g1+%lo(printf),%g0 ; + nop /* delay slot*/ ; +.Lprintfe1: ; + .size ldso_stub__printf,.Lprintfe1-ldso_stub__printf ;" >> $TMP if $GNUMAKE sparc-funcdef.o > /dev/null 2>&1 ; then - echo $SUN_FUNCDEF + echo $SUN_FUNCDEF else echo $GNU_FUNCDEF fi diff --git a/tools-for-build/whitespacely-canonical-filenames b/tools-for-build/whitespacely-canonical-filenames index b858795..dd5167c 100755 --- a/tools-for-build/whitespacely-canonical-filenames +++ b/tools-for-build/whitespacely-canonical-filenames @@ -11,7 +11,7 @@ # conservative syntax used in SBCL sources) source_extensions='.lisp .lisp-expr .c .h' # other candidates: -# .sh +# .sh: if ./make.sh is altered, Bad Things happen # ? for source_extension in $source_extensions; do diff --git a/version.lisp-expr b/version.lisp-expr index 6239707..f860a66 100644 --- a/version.lisp-expr +++ b/version.lisp-expr @@ -17,4 +17,4 @@ ;;; checkins which aren't released. (And occasionally for internal ;;; versions, especially for internal versions off the main CVS ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".) -"0.9.8.26" +"0.9.8.27"