Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
e333d847 by Raymond Toy at 2016-12-27T22:31:44-08:00
Tell assembler we're using %g2 and %g3
Assembler errors out if we don't tell it we're using %g2 and %g3 in
the code.
- - - - -
1 changed file:
- src/lisp/sparc64-assem.S
Changes:
=====================================
src/lisp/sparc64-assem.S
=====================================
--- a/src/lisp/sparc64-assem.S
+++ b/src/lisp/sparc64-assem.S
@@ -36,6 +36,14 @@
#else
#define FRAMESIZE (SA(MINFRAME))
#endif
+
+/*
+ * Tell assembler we're using %g2 and %g3 here.
+ */
+ .register %g2, #scratch
+ .register %g3, #scratch
+
+
.seg "text"
.global call_into_lisp
FUNCDEF(call_into_lisp)
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/e333d8472738fed095b4f19d9…
Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
1b987a64 by Raymond Toy at 2016-12-27T11:43:32-08:00
Use the default version if possible
If -V isn't given, try to use the default, if possible.
- - - - -
1 changed file:
- bin/make-dist.sh
Changes:
=====================================
bin/make-dist.sh
=====================================
--- a/bin/make-dist.sh
+++ b/bin/make-dist.sh
@@ -130,10 +130,15 @@ if [ $# -lt 1 ]; then
usage
fi
-# Either VERSION or DEFAULT_VERSION must be non-empty
-if [ -z "$VERSION" -a -z "${DEFAULT_VERSION}" ]; then
- echo "Version (-V) must be specified because default version cannot be determined."
- usage
+if [ -z "$VERSION" ]; then
+ # If a default version exists, use it. Otherwise this is an
+ # error---at least one of these must not be empty.
+ if [ -z "${DEFAULT_VERSION}" ]; then
+ echo "Version (-V) must be specified because default version cannot be determined."
+ usage
+ else
+ VERSION=${DEFAULT_VERSION}
+ fi
fi
if [ ! -d "$1" ]
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/1b987a649d4cbeae93a764a99…
Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
96739d95 by Raymond Toy at 2016-12-27T11:37:31-08:00
Replace version arch os args with switches
The positional version, arch, and os args are now commandline
switches. This allows the user to specify arch and os names, for
example, without specifying a version. This allows the version to be
defaulted. Previously, the version had to be specified if arch or os
were desired.
The original default values are used if these options aren't given.
- - - - -
54eceec9 by Raymond Toy at 2016-12-27T11:38:10-08:00
Make sure version is specified.
The version must either be computed using the defaults or must be
given by the -V option. Otherwise make-main-dist doesn't know what to
do without a version.
- - - - -
f6a7beae by Raymond Toy at 2016-12-27T11:42:52-08:00
Use the default version if possible
If -V isn't given, try to use the default, if possible.
- - - - -
1 changed file:
- bin/make-dist.sh
Changes:
=====================================
bin/make-dist.sh
=====================================
--- a/bin/make-dist.sh
+++ b/bin/make-dist.sh
@@ -12,7 +12,7 @@
# $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/make-dist.sh,v 1.20 2011/04/11 16:34:49 rtoy Exp $
usage() {
- echo "make-dist.sh: [-hbg] [-G group] [-O owner] [-I destdir] [-M mandir] dir [version arch os]"
+ echo "make-dist.sh: [-hbg] [-G group] [-O owner] [-I destdir] [-M mandir] [-A arch] [-V version] [-o OS] dir"
echo " -h This help"
echo " -b Use bzip2 compression"
echo " -g Use gzip compression"
@@ -24,10 +24,10 @@ usage() {
echo " The compressed tar file is named cmucl-src-<VERSION>.tar.<ext>"
echo " If -I is also given, the -S means that the sources are "
echo " installed in the <destdir>/src"
+ echo " -A arch Architecture (x86, sparc, ppc, etc.)"
+ echo " -o OS OS (linux, solaris10, etc.)"
+ echo " -V version Version (usually date and/or other version info)"
echo " dir Directory where the build is located"
- echo " version Version (usually date and/or other version info)"
- echo " arch Architecture (x86, sparc, etc.)"
- echo " os OS (linux, solaris8, etc.)"
echo ""
echo "If the -I option is given, directly install all of the files to the"
echo "specified directory. Otherwise, Make a CMUCL distribution consisting"
@@ -57,7 +57,7 @@ def_arch_os () {
SunOS)
case `uname -m` in
sun*)
- ARCH=sparcv9 ;;
+ ARCH=sparc ;;
i*)
ARCH=x86 ;;
esac
@@ -90,7 +90,23 @@ def_arch_os () {
esac
}
-while getopts "G:O:I:M:bghS?" arg
+# Figure out the architecture and OS in case options aren't given
+def_arch_os
+
+# Choose a version based on the git hash as the default version. We
+# only compute a default if the git hash looks like a snapshot
+# ("snapshot-yyyy-mm") or a release number..
+GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
+
+if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
+ DEFAULT_VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
+fi
+
+if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
+ DEFAULT_VERSION="${GIT_HASH}"
+fi
+
+while getopts "G:O:I:M:bghSA:o:V:?" arg
do
case $arg in
G) GROUP=$OPTARG ;;
@@ -100,46 +116,28 @@ do
b) ENABLE_BZIP=-b ;;
g) ENABLE_GZIP=-g ;;
S) MAKE_SRC_DIST=yes ;;
+ A) ARCH=$OPTARG ;;
+ o) OS=$OPTARG ;;
+ V) VERSION=$OPTARG ;;
h | \?) usage; exit 1 ;;
esac
done
shift `expr $OPTIND - 1`
-# Figure out the architecture and OS
-ARCH=
-OS=
-
-# Figure out the architecture and OS
-def_arch_os
+# Directory is required; exit if not given
+if [ $# -lt 1 ]; then
+ usage
+fi
-if [ -n "${INSTALL_DIR}" ]; then
- # Doing direct installation
- if [ $# -lt 1 ]; then
+if [ -z "$VERSION" ]; then
+ # If a default version exists, use it. Otherwise this is an
+ # error---at least one of these must not be empty.
+ if [ -z "${DEFAULT_VERSION}" ]; then
+ echo "Version (-V) must be specified because default version cannot be determined."
usage
else
- def_arch_os
- fi
-elif [ $# -lt 2 ]; then
- # Version not specified so choose a version based on the git hash.
- GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
-
- if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
- VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
- fi
-
- if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
- VERSION="${GIT_HASH}"
- fi
-
- echo "Defaulting version to $VERSION"
-else
- VERSION="$2"
- if [ $# -eq 3 ]; then
- ARCH=$3
- elif [ $# -eq 4 ]; then
- ARCH=$3
- OS=$4
+ VERSION=${DEFAULT_VERSION}
fi
fi
@@ -167,6 +165,7 @@ if [ -n "$INSTALL_DIR" ]; then
VERSION="today"
fi
+echo cmucl-$VERSION-$ARCH-$OS
ROOT=`dirname $0`
# If no compression options given, default to bzip
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/compare/2b0b4aaf2b48969906d3a474…
Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
50f850e4 by Raymond Toy at 2016-12-27T10:57:52-08:00
Make sure version is specified.
The version must either be computed using the defaults or must be
given by the -V option. Otherwise make-main-dist doesn't know what to
do without a version.
- - - - -
1 changed file:
- bin/make-dist.sh
Changes:
=====================================
bin/make-dist.sh
=====================================
--- a/bin/make-dist.sh
+++ b/bin/make-dist.sh
@@ -93,15 +93,17 @@ def_arch_os () {
# Figure out the architecture and OS in case options aren't given
def_arch_os
-# Choose a version based on the git hash as the default version.
+# Choose a version based on the git hash as the default version. We
+# only compute a default if the git hash looks like a snapshot
+# ("snapshot-yyyy-mm") or a release number..
GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
- VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
+ DEFAULT_VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
fi
if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
- VERSION="${GIT_HASH}"
+ DEFAULT_VERSION="${GIT_HASH}"
fi
while getopts "G:O:I:M:bghSA:o:V:?" arg
@@ -128,6 +130,12 @@ if [ $# -lt 1 ]; then
usage
fi
+# Either VERSION or DEFAULT_VERSION must be non-empty
+if [ -z "$VERSION" -a -z "${DEFAULT_VERSION}" ]; then
+ echo "Version (-V) must be specified because default version cannot be determined."
+ usage
+fi
+
if [ ! -d "$1" ]
then
echo "$1 isn't a directory"
@@ -152,6 +160,7 @@ if [ -n "$INSTALL_DIR" ]; then
VERSION="today"
fi
+echo cmucl-$VERSION-$ARCH-$OS
ROOT=`dirname $0`
# If no compression options given, default to bzip
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/50f850e408d6749ff3f986d09…
Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
2e5a64c1 by Raymond Toy at 2016-12-27T10:50:00-08:00
Replace version arch os args with switches
The positional version, arch, and os args are now commandline
switches. This allows the user to specify arch and os names, for
example, without specifying a version. This allows the version to be
defaulted. Previously, the version had to be specified if arch or os
were desired.
The original default values are used if these options aren't given.
- - - - -
1 changed file:
- bin/make-dist.sh
Changes:
=====================================
bin/make-dist.sh
=====================================
--- a/bin/make-dist.sh
+++ b/bin/make-dist.sh
@@ -12,7 +12,7 @@
# $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/tools/make-dist.sh,v 1.20 2011/04/11 16:34:49 rtoy Exp $
usage() {
- echo "make-dist.sh: [-hbg] [-G group] [-O owner] [-I destdir] [-M mandir] dir [version arch os]"
+ echo "make-dist.sh: [-hbg] [-G group] [-O owner] [-I destdir] [-M mandir] [-A arch] [-V version] [-o OS] dir"
echo " -h This help"
echo " -b Use bzip2 compression"
echo " -g Use gzip compression"
@@ -24,10 +24,10 @@ usage() {
echo " The compressed tar file is named cmucl-src-<VERSION>.tar.<ext>"
echo " If -I is also given, the -S means that the sources are "
echo " installed in the <destdir>/src"
+ echo " -A arch Architecture (x86, sparc, ppc, etc.)"
+ echo " -o OS OS (linux, solaris10, etc.)"
+ echo " -V version Version (usually date and/or other version info)"
echo " dir Directory where the build is located"
- echo " version Version (usually date and/or other version info)"
- echo " arch Architecture (x86, sparc, etc.)"
- echo " os OS (linux, solaris8, etc.)"
echo ""
echo "If the -I option is given, directly install all of the files to the"
echo "specified directory. Otherwise, Make a CMUCL distribution consisting"
@@ -57,7 +57,7 @@ def_arch_os () {
SunOS)
case `uname -m` in
sun*)
- ARCH=sparcv9 ;;
+ ARCH=sparc ;;
i*)
ARCH=x86 ;;
esac
@@ -90,7 +90,21 @@ def_arch_os () {
esac
}
-while getopts "G:O:I:M:bghS?" arg
+# Figure out the architecture and OS in case options aren't given
+def_arch_os
+
+# Choose a version based on the git hash as the default version.
+GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
+
+if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
+ VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
+fi
+
+if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
+ VERSION="${GIT_HASH}"
+fi
+
+while getopts "G:O:I:M:bghSA:o:V:?" arg
do
case $arg in
G) GROUP=$OPTARG ;;
@@ -100,47 +114,18 @@ do
b) ENABLE_BZIP=-b ;;
g) ENABLE_GZIP=-g ;;
S) MAKE_SRC_DIST=yes ;;
+ A) ARCH=$OPTARG ;;
+ o) OS=$OPTARG ;;
+ V) VERSION=$OPTARG ;;
h | \?) usage; exit 1 ;;
esac
done
shift `expr $OPTIND - 1`
-# Figure out the architecture and OS
-ARCH=
-OS=
-
-# Figure out the architecture and OS
-def_arch_os
-
-if [ -n "${INSTALL_DIR}" ]; then
- # Doing direct installation
- if [ $# -lt 1 ]; then
- usage
- else
- def_arch_os
- fi
-elif [ $# -lt 2 ]; then
- # Version not specified so choose a version based on the git hash.
- GIT_HASH="`(cd src; git describe --dirty 2>/dev/null)`"
-
- if expr "X${GIT_HASH}" : 'Xsnapshot-[0-9][0-9][0-9][0-9]-[01][0-9]' > /dev/null; then
- VERSION=`expr "${GIT_HASH}" : "snapshot-\(.*\)"`
- fi
-
- if expr "X${GIT_HASH}" : 'X[0-9][0-9][a-f]' > /dev/null; then
- VERSION="${GIT_HASH}"
- fi
-
- echo "Defaulting version to $VERSION"
-else
- VERSION="$2"
- if [ $# -eq 3 ]; then
- ARCH=$3
- elif [ $# -eq 4 ]; then
- ARCH=$3
- OS=$4
- fi
+# Directory is required; exit if not given
+if [ $# -lt 1 ]; then
+ usage
fi
if [ ! -d "$1" ]
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/2e5a64c10f75627c6479a9fc6…
Raymond Toy pushed to branch sparc64-dev at cmucl / cmucl
Commits:
a77be97e by Raymond Toy at 2016-12-27T10:02:48-08:00
Support sparc64
When ARCH is sparc64, set fasl type to sparc64f so we copy all of the
appropriate fasls for the installation.
- - - - -
2 changed files:
- bin/make-extra-dist.sh
- bin/make-main-dist.sh
Changes:
=====================================
bin/make-extra-dist.sh
=====================================
--- a/bin/make-extra-dist.sh
+++ b/bin/make-extra-dist.sh
@@ -34,6 +34,7 @@ OS=$4
case $ARCH in
x86*) FASL="sse2f" ;;
+ sparc64) FASL=sparc64f ;;
sparc*) FASL=sparcf ;;
alpha*) FASL=axpf ;;
ppc*) FASL=ppcf ;;
=====================================
bin/make-main-dist.sh
=====================================
--- a/bin/make-main-dist.sh
+++ b/bin/make-main-dist.sh
@@ -41,6 +41,7 @@ CORE=lisp.core
case $ARCH in
x86*) FASL=sse2f
CORE="lisp-sse2.core" ;;
+ sparc64) FASL=sparc64f ;;
sparc*) FASL=sparcf ;;
alpha*) FASL=axpf ;;
ppc*) FASL=ppcf ;;
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/commit/a77be97eca3c369a51f96270a…