aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-08-23 03:16:19 +0000
committerdos-reis <gdr@axiomatics.org>2011-08-23 03:16:19 +0000
commit0416c1e54eb6a6209f17a32d163328f6bae5f595 (patch)
treead12e4509b7f4c416b1898bb0270ca8f601b1d74
parentd63ce4731d81c50eb205524d7b7d58681d20fa4a (diff)
downloadopen-axiom-0416c1e54eb6a6209f17a32d163328f6bae5f595.tar.gz
* interp/sys-driver.boot (initializeGlobalState): Construct
database tables if algebra is not complete yet. * interp/Makefile.in (${SAVESYS}): Simplify. * algebra/Makefile.in (strap-stamp): Make the destination directory.
-rw-r--r--src/ChangeLog7
-rw-r--r--src/algebra/Makefile.in1
-rw-r--r--src/interp/Makefile.in8
-rw-r--r--src/interp/daase.lisp1
-rw-r--r--src/interp/sys-driver.boot18
5 files changed, 21 insertions, 14 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 351af17c..92b7bfee 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,12 @@
2011-08-22 Gabriel Dos Reis <gdr@cs.tamu.edu>
+ * interp/sys-driver.boot (initializeGlobalState): Construct
+ database tables if algebra is not complete yet.
+ * interp/Makefile.in (${SAVESYS}): Simplify.
+ * algebra/Makefile.in (strap-stamp): Make the destination directory.
+
+2011-08-22 Gabriel Dos Reis <gdr@cs.tamu.edu>
+
* interp/metalex.lisp (LINE-HANDLER, NEXT-LINE, XCAPE): Remove.
(XTOKENREADER, GET-TOKEN, NEXT-META-LINE): Likewise.
(META_ERROR_HANDLER, META-SYNTAX-ERROR, META-META-ERROR-HANLER):
diff --git a/src/algebra/Makefile.in b/src/algebra/Makefile.in
index 50bc98de..a24f4218 100644
--- a/src/algebra/Makefile.in
+++ b/src/algebra/Makefile.in
@@ -1681,6 +1681,7 @@ $(axiom_algebra_layer_user_objects): bootstrap-stamp
all-algstrap: strap-stamp
strap-stamp: strap-2/.finished
+ @ $(mkdir_p) $(OUT)
@ rm -f strap-stamp
@ $(STAMP) strap-stamp
@ echo =====================================
diff --git a/src/interp/Makefile.in b/src/interp/Makefile.in
index 056fa8d5..fab50106 100644
--- a/src/interp/Makefile.in
+++ b/src/interp/Makefile.in
@@ -198,18 +198,14 @@ makeint.lisp: Makefile
@ echo '#+:gcl (si::gbc-time 0)' >> makeint.lisp
@ echo '#+:GCL (si::gbc t)' >> makeint.lisp
-${SAVESYS}: database.date \
- $(axiom_targetdir)/algebra/exposed.$(FASLEXT) \
- $(axiom_target_datadir)/msgs/s2-us.msgs \
- $(OBJS) makeint.$(LNKEXT)
+${SAVESYS}: database.date $(axiom_target_datadir)/msgs/s2-us.msgs $(OBJS)
$(DRIVER) --execpath=$(BOOTSYS) \
--syslib=$(axiom_target_libdir) \
--system="$(AXIOM)/" --system-algebra \
--sysdb="$(axiom_src_datadir)/algebra/" \
--prologue="(pushnew :open-axiom-basic-system *features*)" \
--make --output=$@ --main="BOOT::|systemMain|" \
- --load-directory=. $(OBJS) makeint.$(LNKEXT)
- @ echo 6 $@ created
+ --load-directory=. $(OBJS)
$(mkdir_p) $(axiom_target_bindir)
.PHONY: all-axiomsys
diff --git a/src/interp/daase.lisp b/src/interp/daase.lisp
index 086f5810..74b6ba9c 100644
--- a/src/interp/daase.lisp
+++ b/src/interp/daase.lisp
@@ -349,7 +349,6 @@
(close *category-stream*)
(close *browse-stream*))
-
(defun |fillDatabasesInCore| nil
"set all -hash* to clean values. used to clean up core before saving system"
(setq *hascategory-hash* (make-hash-table :test #'equal))
diff --git a/src/interp/sys-driver.boot b/src/interp/sys-driver.boot
index 37023295..f101bf6d 100644
--- a/src/interp/sys-driver.boot
+++ b/src/interp/sys-driver.boot
@@ -178,7 +178,7 @@ restart() ==
++ line compiler, the script executor, etc. Mess with care.
initializeGlobalState() ==
REROOT()
- have_to := $StandardLinking or not %basicSystemIsComplete()
+ init? := $StandardLinking or not %algebraSystemIsComplete()
-- 0. Global variables.
$inLispVM := false
@@ -195,12 +195,13 @@ initializeGlobalState() ==
setCompilerOptimizations(getOptionValue "optimize" or
$defaultOptimizationLevel)
GCMSG(NIL)
- if have_to then
+ if init? then
$superHash := hashTable 'EQUAL
initNewWorld()
-- 1. Macros.
- if have_to then buildHtMacroTable()
+ if init? then
+ buildHtMacroTable()
-- 2. History
if $verbose and $displayStartMsgs then
@@ -210,7 +211,7 @@ initializeGlobalState() ==
-- 3. Databases
if $verbose and $displayStartMsgs then
sayKeyedMsg("S2IZ0053",['"database"])
- if have_to then
+ if init? then
fillDatabasesInCore()
mkLowerCaseConTable()
else
@@ -220,24 +221,27 @@ initializeGlobalState() ==
if $verbose and $displayStartMsgs then
sayKeyedMsg("S2IZ0053",['"constructors"])
loadExposureGroupData()
- if have_to then makeConstructorsAutoLoad()
+ if init? then
+ makeConstructorsAutoLoad()
-- 5. Rule sets.
if not $ruleSetsInitialized
then initializeRuleSets()
-- 6. Interpreter
- if have_to then
+ if init? then
if $verbose and $displayStartMsgs then
sayKeyedMsg("S2IZ0053",['"interpreter"])
initializeTimedNames($interpreterTimedNames,$interpreterTimedClasses)
+
+ if init? then
statisticsInitialization()
initializeSystemCommands()
$InteractiveFrame := makeInitialModemapFrame()
initializeInterpreterFrameRing()
-- 7. Etc.
- if have_to and functionp 'addtopath then
+ if init? and functionp 'addtopath then
addtopath strconc(systemRootDirectory(),'"bin")
-- Take off