Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/NOTES/HISTORY
ViewVC logotype

Diff of /sml/trunk/NOTES/HISTORY

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

sml/trunk/HISTORY revision 773, Mon Jan 8 16:18:37 2001 UTC sml/trunk/NOTES/HISTORY revision 2804, Mon Oct 22 04:20:02 2007 UTC
# Line 1  Line 1 
1  This is the HISTORY file for the Yale SML/NJ CVS repository.  This is the HISTORY file for the SML/NJ repository.
2    
3  An entry should be made for _every_ commit to the repository.  An entry should be made for _every_ commit to the repository.
4  The entries in this file will be used when creating the README  The entries in this file will be used when creating the README
# Line 7  Line 7 
7    
8  The form of an entry should be:  The form of an entry should be:
9    
10  Name:  
11  Date:  Name: Your Name (web page or e-mail)
12  Tag: <post-commit CVS tag>  Date: yyyy/mm/dd hh:mm:ss
13    Tag: cvs-tag-for-this-change
14    Description:
15    
16    ----------------------------------------------------------------------
17    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
18    Date: 2007/10/18
19    Description:
20    
21    The GAS output now favors p2align over align, since the
22    former is guaranteed to be consistent over multiple architectures
23    and the latter is not.
24    ----------------------------------------------------------------------
25    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
26    Date: 2007/10/18
27    Description:
28    
29    Fixed a bug in register spilling.
30    ----------------------------------------------------------------------
31    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
32    Date: 2007/10/2
33    Description:
34    
35    Added demo support for AMD64 for quick testing and fixed support for
36    64-bit label constants.
37    ----------------------------------------------------------------------
38    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
39    Date: 2007/09/20
40    Description:
41    
42    Added support for the MLRISC COND instruction and the x86-64 CMOVCC
43    instruction.
44    ----------------------------------------------------------------------
45    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
46    Date: 2007/09/17
47    Description:
48    
49    Fixed an instruction-selection bug when loading 64-bit labels.
50    
51    ----------------------------------------------------------------------
52    Name: George Kuan (http://www.cs.uchicago.edu/~gkuan)
53    Date: 2007/09/14
54    Description:
55    
56    Fixed Elaborator and Translate performance bugs
57    
58    ----------------------------------------------------------------------
59    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
60    Date: 2007/09/12
61    Description:
62    
63    Fixed xorl memory argument bug.
64    
65    ----------------------------------------------------------------------
66    Name: George Kuan (http://www.cs.uchicago.edu/~gkuan)
67    Date: 2007/07/27
68    Description:
69    
70    Added f64sgn (for Real64.signBit) as a primop defined
71    in MLRiscGen. signBit(~0.0) not handled correctly.
72    
73    ----------------------------------------------------------------------
74    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
75    Date: 2007/06/21
76    Description:
77    
78    Fixed bug in {TextIO,BinIO}.StreamIO.endOfStream that would incorrectly
79    signal end of stream.
80    
81    ----------------------------------------------------------------------
82    Name: Matthias Blume (http://www.tti-c.org/blume/)
83    Date: 2007/06/12 11:22:00 CDT
84    Description:
85    
86    Eliminated config/allsources.  The information is now drawn directly
87    from config/actions.
88    
89    ----------------------------------------------------------------------
90    Name: Matthias Blume (http://www.tti-c.org/blume/)
91    Date: 2007/06/07 23:30:00 CDT
92    Tag: release-110.65
93    Description:
94    
95    Version 110.65. NEW BOOTFILES!
96    
97    ----------------------------------------------------------------------
98    Name: Matthias Blume (http://www.tti-c.org/blume/)
99    Date: 2007/06/06 21:45:00 CDT
100    Description:
101    
102    - Aaron: fixed a number of bugs in ml-ulex.
103    - Matthias:
104       - added CM control "cm.force-tools"; this is false by default;
105         when set to true, then tools like ml-yacc, ml-lex, ml-ulex, etc.
106         will be forced to run regardless of whether or not their targets
107         are up-to-date
108       - changed installer code so that config/install.sh will re-build
109         heap images for all tools even if those heap images already existed
110    
111    ----------------------------------------------------------------------
112    Name: Matthias Blume (http://www.tti-c.org/blume/)
113    Date: 2007/06/04 21:21:00 CDT
114    Description:
115    
116    After Aaron Turon's bug fix for ml-ulex (handling the ^ character
117    in legacy mode), re-ran the lexer generator on all lex input files
118    and committed the results.
119    
120    This should fix the problem with ckit and nlffi that was reported
121    by Vesa A. Norrman.
122    
123    ----------------------------------------------------------------------
124    Name: Matthias Blume (http://www.tti-c.org/blume/)
125    Date: 2007/05/31 11:40:00 CDT
126    Tag: release-110.64
127    Description:
128    
129    Version 110.64. NEW BOOTFILES!
130    
131    ----------------------------------------------------------------------
132    Name: Dave MacQueen (dbm@cs.uchicago.edu)
133    Date: 2007/05/31 14:55:00 CDT
134    Revision: 2650
135    Description:
136    
137    3rd merge of base from primop-branch-3 into the trunk.
138    Additional bug fixes included:
139    
140     * Timer.cpu_timer, etc. type printing corrected (by making
141         Timer have opaque sig constraint in basis/Implementation/timer.sml)
142     * Infinite loop in FLINT (tests/typing/tests/25.sml) (fix by
143         Stefan Monnier)
144    
145    ----------------------------------------------------------------------
146    Name: Matthias Blume (http://www.tti-c.org/blume/)
147    Date: 2007/05/31 11:40:00 CDT
148    Description:
149    
150    Fixed some bugs in new Div code in FLINT/trans/translate.sml.
151    
152    Also, changed the handling of "no core access":  When translate.sml
153    needs access to a core exception at a time when the core has not
154    been set up yet (this only happens when compiling system/smlnj/init/*),
155    then don't bother generating the corresponding tests.
156    
157    The old scheme was to generate a bogus value to be used in place of
158    the exception.  Unfortunately, that confuses the plambda type checker.
159    Moreover, it does not do any good, because at runtime we don't expect
160    such an exception to be ever raised.  (The code in system/smlnj/init/*
161    has to be written very carefully with this in mind!)
162    
163    ----------------------------------------------------------------------
164    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
165    Date: 2007/05/29
166    Description:
167    
168    Added FSQRT instructions for the AMD64 code generator.
169    
170    ----------------------------------------------------------------------
171    Name: Matthias Blume (http://www.tti-c.org/blume/)
172    Date: 2007/05/29 19:00:00 CDT
173    Description:
174    
175    FLINT/trans/translate.sml now wraps all DIV/MOD/QUOT/REM operations
176    with an explicit test for zero division.  This should fixes several
177    regressions and makes it possible for downstream optimization phases
178    to treat these operations as "pure" when they are applied to unsigned
179    operands.
180    
181    ----------------------------------------------------------------------
182    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
183    Date: 2007/05/29
184    Description:
185    
186    Added the new MLRISC code generator for the AMD64.  This version,
187    in contrast to the previous one, uses SSE registers and instructions
188    for all floating-point computations.
189    
190    ----------------------------------------------------------------------
191    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
192    Date: 2007/05/29
193    Description:
194    
195    A number of fixes related to the formatting of dates.  These include fixes
196    for bugs #1415 and #1416.  We also now correctly handle format characters that
197    lie outside the specified set.
198    
199    ----------------------------------------------------------------------
200    Name: Matthias Blume (http://www.tti-c.org/blume/)
201    Date: 2007/05/23 22:30:00 CDT
202    Description:
203    
204    CMB (and CM) now automatically defines the CM "preprocessor" symbol
205    NO_PLUGINS during "makeml -rebuild" or when CM operates in "slave" mode.
206    
207      (In addition, CMB_REBUILD_MODE is defined for makeml -rebuild,
208       CM_SLAVE_MODE is defined in attached slaves while running CM.make
209       or CM.rebuild, and CMB_SLAVE_MODE is defined in attached slaves
210       while running CMB.make.  The point is that the single symbol
211       NO_PLUGINS is definde in all three cases.)
212    
213    I changed the three locations within the sources that get compiled
214    during CMB.make where ml-yacc or ml-lex input is processed: When
215    NO_PLUGINS defined, then the use of the mlyacc and mllex tools
216    is bypassed.
217    
218    When bootstrapping new versions of the compiler, there can be
219    situations where the plugin tools for ml-yacc and ml-lex (or ml-ulex)
220    are not available or otherwise not operational.  In this case one can
221    manually define the NO_PLUGINS symbol prior to running CMB.make().  To
222    do so, the following command should be issued at the interactive
223    prompt:
224    
225       #set (CMB.symval "NO_PLUGINS") (SOME 1);
226    
227    A CMB.make with NO_PLUGINS defined relies on the existence of the
228    files that normally would be generated by ml-yacc and ml-lex.
229    (Copies of these files are in the repository.)
230    
231    ----------------------------------------------------------------------
232    Name: David MacQueen (dbm@cs.uchicago.edu)
233    Date: 2007/5/23 17:23:00 CDT
234    Revision: 2603
235    Description:
236    
237    2nd merge of base from primop-branch-3 into the trunk.
238    Additional bug fixes included:
239     Date.scan and Date.fromString fixed;
240     Overloading resolution fixed and some type printing problems corrected.
241    
242    ----------------------------------------------------------------------
243    Name: Matthias Blume (http://www.tti-c.org/blume/)
244    Date: 2007/05/23 09:50:00 CDT
245    Description:
246    
247    Changed the installation mechanism for CM tool plugins.  These are
248    just libaries and now get installed like ordinary libaries.
249    
250    There are now a number of new installation targets that give some
251    fine-grain control over what classes and suffixes are known, and what
252    they will map to.
253    See config/targets for details.
254    
255    The code that caused plugin installation as part of running a
256    tool's "build" script has been removed.  (The build script is for
257    building, not for installing.)
258    
259    ----------------------------------------------------------------------
260    Name: Matthias Blume (http://www.tti-c.org/blume/)
261    Date: 2007/05/22 11:50:00 CDT
262    Description:
263    
264    Added a boolean control named cm.tolerate-tool-failures (env. variable
265    name: CM_TOLERATE_TOOL_FAILURES).  The default is false and makes
266    CM fail if a shell tool reports a non-success exit status.  If
267    the control is set to true, then CM will press on after tool failures
268    in the event that the target files exist (even though they are
269    considered outdated).  Turning the control to true can be useful for
270    bootstrapping.
271    
272    ----------------------------------------------------------------------
273    Name: Aaron Turon (http://www.cs.uchicago.edu/~adrassi)
274    Date: 2007/05/19
275    Description:
276    
277    Merge of ml-lpt revisions for 110.64.
278    
279    The name of several ml-lpt-lib modules has changed:
280      Repair        => AntlrRepair
281      StreamPos     => AntlrStreamPos
282      ErrHandlerFn  => AntlrErrHandler
283      EBNF          => AntlrEBNF
284    
285    The ml-antlr specification format has changed: declarations such as
286    %tokens and nonterminal definitions can occur *multiple* times in the
287    same specification.  The semantics are such that each new declaration
288    extends the previous ones.  This does not apply to %start or %name,
289    of course.
290    
291    Importing a grammar via %import now includes *all* declarations in from
292    the imported grammar, except for %name, %entry, and %start.  Tokens
293    and nonterminals can be dropped using the new %dropping clause of the
294    %import directive; the separate %drop and %extend have been removed.
295    
296    We now allow optional type annotations on nonterminals, using the %nonterms
297    directive as in ml-yacc.
298    
299    The refcell construct is now implemented using SML's regular reference
300    cells, so the :== and !! notation has been deprecated.
301    
302    The ml-antlr tool now does much more checking of specifications, and
303    its error messages have been greatly improved.  Error repair for
304    generated parsers has been completely rewritten, and is now both
305    much faster and more accurate.
306    
307    ml-ulex is now more lenient with escape codes (non-SML-standard
308    escape codes are now interpreted literally, so e.g. \| denotes "|").
309    Also, character classes may now include a "-" character at the beginning
310    as is standard in most other regexp tools.
311    
312    All of these changes are documented in the user guide, which has
313    been updated and improved with this merge.
314    
315    ----------------------------------------------------------------------
316    Name: David MacQueen (http://www.cs.uchicago.edu/~jhr)
317    Date: 2007/05/03
318    Revision: r2492
319    Description:
320    
321    Merge of the primop3 branch (base) into the trunk to create 110.63.1.
322    Significant changes in FLINT and the front end, mostly having to do
323    with a reorganized system for handling primops.  Various bug fixes
324    and improvements in printing signatures.
325    
326    ----------------------------------------------------------------------
327    Name: Aaron Turon (http://www.cs.uchicago.edu/~adrassi)
328    Date: 2007/05/02
329    Description:
330    
331    Preliminary commit of large ml-lpt revisions (more to come for 110.64).
332    The ml-antlr specification format has changed: declarations such as
333    %tokens and nonterminal definitions can occur *multiple* times in the
334    same specification.  The semantics are such that each new declaration
335    extends the previous ones.  Grammar extension constructs have also
336    changed.  We now allow type annotations on nonterminals.  Finally,
337    the refcell construct is now implemented using SML's regular reference
338    cells, so the :== and !! notation has been deprecated.  All of these
339    changes will appear in the 110.64 user guide for ml-lpt.
340    
341    The ml-antlr tool now does much more checking of specifications, and
342    its error messages have been greatly improved.  There has also been
343    some work on the error repair process for generated parsers, but this
344    will be further improved in 110.64.
345    
346    ----------------------------------------------------------------------
347    Name: David MacQueen (http://www.cs.uchicago.edu/~jhr)
348    Date: 2007/05/03
349    Revision: r2492
350    Description:
351    
352    Merge of the primop3 branch (base) into the trunk to create 110.63.1.
353    Significant changes in FLINT and the front end, mostly having to do
354    with a reorganized system for handling primops.  Various bug fixes
355    and improvements in printing signatures.
356    
357    ----------------------------------------------------------------------
358    Name: Aaron Turon (http://www.cs.uchicago.edu/~adrassi)
359    Date: 2007/05/02
360    Description:
361    
362    Preliminary commit of large ml-lpt revisions (more to come for 110.64).
363    The ml-antlr specification format has changed: declarations such as
364    %tokens and nonterminal definitions can occur *multiple* times in the
365    same specification.  The semantics are such that each new declaration
366    extends the previous ones.  Grammar extension constructs have also
367    changed.  We now allow type annotations on nonterminals.  Finally,
368    the refcell construct is now implemented using SML's regular reference
369    cells, so the :== and !! notation has been deprecated.  All of these
370    changes will appear in the 110.64 user guide for ml-lpt.
371    
372    The ml-antlr tool now does much more checking of specifications, and
373    its error messages have been greatly improved.  There has also been
374    some work on the error repair process for generated parsers, but this
375    will be further improved in 110.64.
376    
377    ----------------------------------------------------------------------
378    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
379    Date: 2007/04/24
380    Description:
381    
382    More Basis fixes: The Char.fromString (etc.) functions did not handle
383    the "\uxxxx" escape sequence.  There is still an outstanding bug with
384    String.fromString the tail is a format escape.  I added a comment to
385    this effect in Basis/Implementation/string.sml.
386    Thanks to Andreas Rossberg.
387    
388    ----------------------------------------------------------------------
389    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
390    Date: 2007/04/24
391    Description:
392    
393    Added next function to Fifo and Queue modules in the SML/NJ Library.
394    
395    ----------------------------------------------------------------------
396    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
397    Date: 2007/04/23
398    Description:
399    
400    More Basis fixes: Time.fmt dropped the leading "~" for negative time
401    values that had no whole part.
402    
403    ----------------------------------------------------------------------
404    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
405    Date: 2007/04/23
406    Description:
407    
408    More Basis fixes: the OS.Path module did not include the InvalidArc
409    exception and did not do sufficient argument checking.
410    Thanks to Stephen Weeks and Adam Chilpala.
411    
412    ----------------------------------------------------------------------
413    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
414    Date: 2007/04/16
415    Description:
416    
417    Fixed an unbound functor bug in the AMD64 CM file.
418    
419    ----------------------------------------------------------------------
420    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
421    Date: 2007/04/12
422    Description:
423    
424    Substantially changed the signature and implementation of AMD64
425    SVID.  It now looks similar to the ia32 SVID, yet uses staged
426    allocation.
427    
428    ----------------------------------------------------------------------
429    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
430    Date: 2007/04/07
431    Description:
432    
433    More Basis fixes: the WORD signature was missing {to,from}Large.
434    Thanks to Andreas Rossberg.
435    
436    ----------------------------------------------------------------------
437    Name: Matthias Blume (http://www.tti-c.org/blume/)
438    Date: 2007/03/22 16:07:00 CDT
439    Tag: release-110.63
440    Description:
441    
442    Bumped version number to 110.63.
443    
444       !!!NEW BOOTFILES!!!
445    
446    ----------------------------------------------------------------------
447    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
448    Date: 2007/03/19
449    Description:
450    
451    Fixed bogus operand sizes in AMD64 instruction spilling.
452    
453    ----------------------------------------------------------------------
454    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
455    Date: 2007/03/19
456    Description:
457    
458    Fixed a number of inconsistencies between the Posix.TTY structure
459    and the Basis specification.  Thanks to Adam Chilpala.
460    
461    ----------------------------------------------------------------------
462    Name: Mike Rainey (http://www.cs.uchicago.edu/~mrainey)
463    Date: 2007/02/26
464    Description:
465    
466    Added preliminary support in MLRISC for Staged Allocation, a technique
467    for specifying calling conventions (see
468    http://www.eecs.harvard.edu/~nr/pubs/staged-abstract.html).
469    Initially, we plan to use this code to generate C calls for the AMD64.
470    
471    The staged allocation code base resides in MLRISC/staged-allocation,
472    and specialized calling conventions go in MLRISC/ARCH/staged-allocation.
473    
474    ----------------------------------------------------------------------
475    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
476    Date: 2007/02/20
477    Description:
478    
479      Bug fix: when SaveCState was called with two values to save, a subsequent
480      GC could cause the RestoreCState to fail because the saved state had been
481      promoted to tagless pair.
482    
483    ----------------------------------------------------------------------
484    Name: Allen Leung (leunga (at) reservoir (dot) com)
485    Date: 2007/02/20 19:08:00 EST
486    Description:
487    
488        Bug triggered by:
489    
490        val a1 = Word8Array.array(a1, 0w0);
491        val _  = Word8Array.update(a1, 0, 0w128);
492    
493        x86MCEmitter crashed when the immediate operand to MOVB was outside
494    of the range -128 ... 127.  I've changed the code so that the range
495    check is disabled.   Only the low order 8 bits of the immediate operand
496    are now significant.
497    
498    
499    ----------------------------------------------------------------------
500    Name: Matthias Blume (http://www.tti-c.org/blume/)
501    Date: 2007/02/15 09:20:00 CST
502    Description:
503    
504    Eliminated any mention of lexgen.  (Lexgen was an early precursor
505    to ml-ulex.)
506    
507    You should update your admin directory, so the shell scripts for
508    maintaining your local copy of the repository reflect this change.
509    
510    ----------------------------------------------------------------------
511    Name: Matthias Blume (http://www.tti-c.org/blume/)
512    Date: 2007/02/14 15:45:00 CST
513    Description:
514    
515    Fixed bug in CM's parallel make facility that failed to have
516    the master re-link modules after letting slaves compile them.
517    
518    ----------------------------------------------------------------------
519    Name: Matthias Blume (http://www.tti-c.org/blume/)
520    Date: 2007/02/12 15:10:00 CST
521    Description:
522    
523    Fixed typo in ml-build script that prevented library anchors
524    from being registered.
525    
526    ----------------------------------------------------------------------
527    Name: Matthias Blume (http://www.tti-c.org/blume/)
528    Date: 2007/02/02 15:20:00 CST
529    Tag: release-110.62
530    Description:
531    
532    New working release (110.62).  NEW BOOTFILES!
533    
534    ----------------------------------------------------------------------
535    Name: Aaron Turon (http://www.cs.uchicago.edu/~adrassi)
536    Date: 2007/01/31
537    Description:
538    
539    Brought ml-lpt manual up-to-date with the code.  Many minor
540    improvements to the tools, and a few minor bugfixes.  Prepared
541    ml-lpt-lib for integration with new UTF8 structure.  Changed
542    the interface for creating streams in ml-ulex (we now support
543    stream creation from several kinds of sources).  Overall, the
544    tools are now quite stable, and their interfaces are unlikely to
545    change in a way that would break compatibility.  More work,
546    however, is needed in the documentation.
547    
548    ----------------------------------------------------------------------
549    Name: Matthias Blume (http://www.tti-c.org/blume/)
550    Date: 2007/02/01 10:05:00 CST
551    Description:
552    
553    Implemented library installer.  Moved CM plugin code for
554    ml-burg, ml-lex, and ml-yacc out of CM source tree and into
555    their respective trees.  Implemented CM plugin for ml-ulex
556    and ml-antlr.  Used library installer for ml-burg, ml-ulex,
557    and ml-antlr.
558    
559    For ml-yacc and ml-lex we continue to have permanently "plugged-in"
560    CM tools.  (It turns out to be too messy to do otherwise because
561    there is too much code that during installation relies on the presence
562    of these tools -- resulting in a tricky ordering problem.)
563    
564    ----------------------------------------------------------------------
565    Name: Matthias Blume (http://www.tti-c.org/blume/)
566    Date: 2007/01/30 11:05:00 CST
567    Description:
568    
569    Added SMLofNJ.shiftArgs which is like a shell's "shift" command.
570    Modified CM's startup code to use shiftArgs as it processes
571    command line arguments.  This way, the init code in each .sml-file
572    or library that is mentioned at the top level will see only
573    those arguments that have not yet been processed at this point.
574    In other words, the init code can "seize control" and process the
575    remaining command line.
576    
577    ----------------------------------------------------------------------
578    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
579    Date: 2007/01/30
580    Description:
581    
582    Added fromList function to the ORD_SET interface and lookup to the
583    ORD_MAP interface.  See the SML/NJ Library CHANGES file for details.
584    
585    ----------------------------------------------------------------------
586    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
587    Date: 2007/01/28
588    Description:
589    
590    Added the UTF8 structure and signature from the Moby compiler to
591    the SML/NJ library (and the CML library).  These modules will replace
592    the version in the ml-lpt-lib.
593    
594    ----------------------------------------------------------------------
595    Name: Matthias Blume (http://www.tti-c.org/blume/)
596    Date: 2007/01/26 15:10:00 CST
597    Description:
598    
599    Added entries to handle ml-lpt-lib.cm in installer.
600    
601    ----------------------------------------------------------------------
602    Name: Matthias Blume (http://www.tti-c.org/blume/)
603    Date: 2006/12/15 11:10:00 CST
604    Tag: release-110.61
605    Description:
606    
607    New working release (110.61).  NEW BOOTFILES!
608    
609    This supersedes the pre-brown-paper-bug release (see below).
610    
611    ----------------------------------------------------------------------
612    Name: Matthias Blume (http://www.tti-c.org/blume/)
613    Date: 2006/12/15 11:00:00 CST
614    Description:
615    
616    Fixed brown-paper-bag bug with CM's pathname handling, which made
617    installation fail under Win32.
618    
619    ----------------------------------------------------------------------
620    Name: Matthias Blume (http://www.tti-c.org/blume/)
621    Date: 2006/12/14 12:00:00 CST
622    Description:
623    
624    Obsolete!
625    
626    [New working release (110.61).  NEW BOOTFILES!]
627    
628    ----------------------------------------------------------------------
629    Name: John Reppy (http://cs.uchicago.edu/~jhr)
630    Date: 2006/14/06 09:50:00 CST
631    Description:
632    
633    Fixed the code in runtime/c-libs/posix-tty/{tcgetattr,tcsetattr}.c to
634    get the c_cc termios data copied correctly.  Also moved the allocation
635    of the string to avoid problems if it caused a GC.
636    
637    Thanks to Timothy Bourke for the bug report and fix.
638    
639    ----------------------------------------------------------------------
640    Name: Matthias Blume (http://www.tti-c.org/blume)
641    Date: 2006/12/08 09:50:00 CST
642    Description:
643    
644    Added code to CM's "standard shell tool" implementation which
645    causes it to tolerate (with a warning) the situation where the shell
646    command fails (e.g., due to the shell command's non-existence)
647    as long as all target files exist.
648    
649    This makes it possible to, e.g., build ml-yacc from sources even if
650    svn checkout messed up the time stamps on files in such a way that
651    yacc.grm is younger than yacc.grm.sml or yacc.grm.sig.  (Ml-yacc would
652    be needed to re-process yacc.grm, but obviously it might not yet be
653    available at that time.)
654    
655    ----------------------------------------------------------------------
656    Name: John Reppy (http://cs.uchicago.edu/~jhr)
657    Date: 2006/12/06 12:06:00 CST
658    Description:
659    
660    Fixed the types of recvVecFrom, recvVecFrom', recvVecFromNB, and
661    recvVecFromNB' in the SOCKET signature.  This error is actually
662    in the SML Basis specification too.
663    
664    ----------------------------------------------------------------------
665    Name: Matthias Blume (http://www.tti-c.org/blume/)
666    Date: 2006/12/05 22:40:00 CST
667    Description:
668    
669    CM now reports undefined anchors as errors and aborts execution
670    rather than silently pressing on using bogus values.
671    
672    ----------------------------------------------------------------------
673    Name: Matthias Blume (http://www.tti-c.org/blume/)
674    Date: 2006/11/29 10:00:00 CST
675    Description:
676    
677    Use Say.vsay for printing the "[autoloading]" message, so
678    #set CM.Control.verbose false (or -Ccm.verbose=false) can be used
679    to suppress them.
680    
681    ----------------------------------------------------------------------
682    Name: Matthias Blume (http://www.tti-c.org/blume/)
683    Date: 2006/11/10 11:00:00 CST
684    Description:
685    
686    Fixed bug in CM where "with:" specifications that affect compilation
687    (as opposed to parsing) were ignored.
688    
689    ----------------------------------------------------------------------
690    Name: Matthias Blume (http://www.tti-c.org/blume/)
691    Date: 2006/11/09 14:30:00 CST
692    Tag: release-110.60
693    Description:
694    
695    New working release (110.60).  NEW BOOTFILES!
696    
697    This is the first subversion-hosted release.  There are also changes
698    to the directory layout.  Here is a table:
699    
700    (All pathnames are relative to the SML/NJ "root" directory.)
701    
702      config -> config
703    
704      src/cm -> base/cm
705      src/compiler -> base/compiler
706      src/runtime -> base/runtime
707      src/system -> base/system
708    
709      src/cm/pgraph -> pgraph
710    
711      src/READMES -> base/READMES
712      src/$notefile -> base/NOTES/$notefile
713         for <notefile> in BOOT CVSNOTES CYGWININSTALL HISTORY INSTALL
714                           MACOSXINSTALL WININSTALL
715    
716      src/smlnj-lib -> smlnj-lib
717      src/MLRISC -> MLRISC
718      ckit -> ckit
719      src/cml -> cml
720      src/eXene -> eXene
721      src/heap2asm -> heap2asm
722      src/lexgen -> lexgen
723      src/ml-burg -> ml-burg
724      src/ml-lex -> ml-lex
725      src/ml-yacc -> ml-yacc
726      src/ml-nlffi-lib -> nlffi/lib
727      src/ml-nlffigen -> nlffi/gen
728      src/smlnj-c -> smlnj-c
729      src/tools/TraceDebugProf -> trace-debug-profile
730    
731    In addition, there is also a new
732    
733      ml-lpt
734    
735    directory containing two new program generator tools: ml-ulex and
736    ml-antlr (a lexer generator that handles unicode and an ANTRL-inspired
737    LL(k) parser generator). These tools are currently "beta-quality"
738    
739    The latest versios of the sources can now be obtained anonymously
740    via subversion.  For this, it is useful to first check out
741    
742       svn://smlnj-gforge.cs.uchicago.edu/smlnj/admin
743    
744    and put the resulting directory on your shell's PATH.  This provides
745    access to three shell scripts: checkout-all.sh, stat-all.sh,
746    and refresh-all.sh.
747    
748    To create a freshly checked-out copy of the sources, do
749    
750       checkout-all.sh [dir]
751    
752    where dir is the optional SML/NJ root directory (default is ".").
753    
754    This creates the above directory layout.  Each subdirectory of
755    the root is under individual subversion control.  The stat-all.sh
756    and refresh-al.sh scripts apply "svn stat" or "svn update" to
757    each of these subtrees.
758    
759    ----------------------------------------------------------------------
760    Name: Matthias Blume (http://www.tti-c.org/blume/)
761    Date: 2006/11/02 12:20:00 CST
762    Description:
763    
764    Reorganized directory layout.
765    
766    This is a temporary solution, more reorganization is to come.
767    
768    The basic idea is to have a number of toplevel trees, each corresponding
769    to a well-defined part of the overall system.  Each part can be
770    maintained individually, even in separate source repositories,
771    although currently we still serve everything out of the main
772    smlnj-gforge tree.
773    
774    Installer and and scripts have been updated to reflect the new
775    layout.  The installer (base/src/system/smlnj/installer) is now
776    "scriptable" to avoid burning too much knowledge about the
777    layout into SML source code.  The main script used by the installer
778    is in config/actions.
779    
780    The main change is that many of the subdirectories of what used to
781    be known as "src" have moved to the toplevel.  The "src" directory
782    itself has moved down into a subtree called "base".  (We may eventually
783    get rid of the extra level of indirection represented by "src".)
784    
785    The layout is now as follows:
786    
787      toplevel tree name | default repository
788                         | (using gf=svn://smlnj-gforge.cs.uchicago.edu/smlnj)
789      -------------------+----------------------------------------------------
790      config             | $gf/config/trunk
791                         |
792      base               | $gf/sml/trunk
793                         |
794      smlnj-lib          | $gf/smlnj-lib/trunk
795      MLRISC             | $gf/MLRISC/trunk
796                         |
797      ml-yacc            | $gf/ml-yacc/trunk
798      ml-lex             | $gf/ml-lex/trunk
799      ml-burg            | $gf/ml-burg/trunk
800      lexgen             | $gf/lexgen/trunk
801      heap2asm           | $gf/heap2asm/trunk
802                         |
803      cml                | $gf/cml/trunk
804      eXene              | $gf/eXene/trunk
805      ckit               | $gf/ckit/trunk
806      nlffi              | $gf/nlffi/trunk
807                         |
808      smlnj-c            | $gf/smlnj-c/trunk
809    
810    In $gf/admin there are a few useful shell scripts for checking out
811    and maintaining the entire collection of trees:
812    
813       admin/checkout-all.sh [dir]
814          -- optionally creates dir and checks out all trees from their
815             default repositories; if dir is missing, checkout into .
816       admin/refresh-all.sh [dir]
817          -- looks at all trees (from the above list) in dir (default: .)
818             and runs "svn update" if the tree exists and is under
819             subversion control;
820             non-existing or non-subversion trees are skipped
821       admin/stat-all.sh [dir]
822          -- like refresh-all.sh, but runs "svn stat" instead
823    
824    ----------------------------------------------------------------------
825    Name: Matthias Blume (http://www.tti-c.org/blume/)
826    Date: 2006/10/05 11:30:00 CDT
827    Tag: blume-20061005-merge-amd64
828    Description:
829    
830    Merged code for AMD64 backend (Mike Rainey's work).
831    Everything is hooked up but untested.
832    
833    ----------------------------------------------------------------------
834    Name: Matthias Blume (http://www.tti-c.org/blume/)
835    Date: 2006/05/17 14:00:00 CST
836    Tag: Release_110_59
837    Description:
838    
839    New working version (110.59).  NEW BOOTFILES!
840    
841    I am freezing 110.59.  Changes other than the version-number increase:
842    
843      eXene:
844    
845         * committed changes to eXene from Alley Stoughton:
846             "fixed bugs in X authorization and resource handling, as well
847              as in the pile and viewport widgets"
848    
849      Runtime:
850        * fixed linking problem with NetBSD 3.x.
851    
852      Lexgen:
853        * lexgen tool handles non-ascii characters in 7-bit mode the same
854          way that ml-lex does
855    
856        * lexgen propagates exceptions the same way that ml-lex does
857    
858      CML:
859        * Fixed a bug in the SyncVar polling functions (iGetPoll,
860          mTakePoll, and mGetPoll) that could lead to livelock.
861    
862    ----------------------------------------------------------------------
863    Name: Matthias Blume (http://www.tti-c.org/blume/)
864    Date: 2006/05/12 15:20:00 CST
865    Tag: blume-20060515-makedepend
866    Description:
867    
868    Implemented ml-makedepend (i.e., CM.sources) in a better (more robust)
869    way.  This should hopefully fix the ml-makedepend problem permanently.
870    
871    ----------------------------------------------------------------------
872    Name: Matthias Blume (http://www.tti-c.org/blume/)
873    Date: 2006/05/12 15:15:00 CST
874    Tag: blume-20060512-makedepend
875    Description:
876    
877    Fixed long-standing bug with ml-makedepend where it would output a
878    spurious dependency to a non-existing file.  (This is a simple fix.
879    It might need further looking into.)
880    
881    ----------------------------------------------------------------------
882    Name: Matthias Blume (http://www.tti-c.org/blume/)
883    Date: 2006/04/20 10:30:00 CDT
884    Tag: blume-20060420-heap2exec
885    Description:
886    
887    Committed patches received from Johannes 5 Joemann (joemann@befree.free.de)
888    that enable heap2exec under Linux and FreeBSD.
889    
890    ----------------------------------------------------------------------
891    Name: John Reppy
892    Date: 2006/04/14
893    Tag:
894    Description:
895    
896    MLRISC changes:
897      1) renamed GAS_PSEUDO_OPS to AS_PSEUDO_OPS and put it in its own file.
898      2) added support for NOTB and XORB operators in pseudo-op expressions
899      3) added DarwinPseudoOp functor that supports Darwin's assembler syntax.
900      4) added support for 64-bit integer literals
901    
902    ----------------------------------------------------------------------
903    Name: Matthias Blume (http://www.tti-c.org/blume/)
904    Date: yyyy/mm/dd
905    Tag: Release_110_58
906    Description:
907    
908    New working version (110.58).  NEW BOOTFILES!
909    
910    ----------------------------------------------------------------------
911    Name: Matthias Blume (http://www.tti-c.org/blume/)
912    Date: 2006/03/01 22:15:00 CST
913    Tag: blume-20060301-lexgen
914    Description:
915    
916    Incorporated several bugfixes to lexgen.  Compiler now compiles to
917    fixpoint when using lexgen instead of ml-lex.
918    
919    ----------------------------------------------------------------------
920    Name: Matthias Blume (http://www.tti-c.org/blume/)
921    Date: 2006/02/28 22:45:00 CST
922    Tag: blume-20060228-lexgen
923    Description:
924    
925    Removed ml-flex and added lexgen instead, using Aaron Turon's newly
926    provided tarball.  The generated lexers still have problems.
927    
928    ----------------------------------------------------------------------
929    Name: Matthias Blume (http://www.tti-c.org/blume/)
930    Date: 2006/02/26 23:30:00 CST
931    Tag: blume-20060226-ml-flex
932    Description:
933    
934    Removed ml-flex' dependency on regexp-lib.cm.  Turned installation
935    of ml-flex on by default.
936    
937    ----------------------------------------------------------------------
938    Name: Matthias Blume (http://www.tti-c.org/blume/)
939    Date: 2006/02/24 16:30:00 CST
940    Tag: blume-20060224-ml-flex
941    Description:
942    
943    Added ml-flex sources.  Partially integrated, but should not be
944    turned on yet!  (Read: leave it commented-out in config/targets!)
945    
946    ----------------------------------------------------------------------
947    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
948    Date: 2006/02/23
949    Tag: jhr-20060223-x86-64
950    Description:
951    Changes to support building on x86-64 systems (using the 32-bit mode).
952    Also cleaned up signal handling on Linux.  Support for pre-2.2 Linux
953    kernels dropped.
954    
955    ----------------------------------------------------------------------
956    Name: Allen Leung (leunga (at) reservoir (dot) com)
957    Date: 2006/02/22 15:07:00 EST
958    Tag: leunga-20060222-mdl-gen
959    Description:
960    
961      CM has changed.  Updated the script for rebuilding the MLRISC generated
962    files.
963    
964    ----------------------------------------------------------------------
965    Name: Matthias Blume (http://www.tti-c.org/blume/)
966    Date: 2006/02/14 17:30:00 CST
967    Tag: blume-20060214-intel-mac
968    Description:
969    
970    Hooked code for Darwin-specific Intel ABI into main compiler.
971    (This is a temporary solution which relies on the fact that the
972    compiler itself does not use NLFFI.  Eventually we need to divorce
973    intel mac from generic x86 unix code and make separate sets of binaries.)
974    
975    ----------------------------------------------------------------------
976    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
977    Date: 2006/02/13
978    Tag: jhr-20060213-intel-mac
979    Description:
980    Changed MLRISC x86 CCalls for partial support of MacOS X ABI.
981    
982    ----------------------------------------------------------------------
983    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
984    Date: 2006/02/06
985    Tag: jhr-20060206-intel-mac
986    Description:
987    Changes to support MacOS X on Intel hardware.  The C-calls support in
988    MLRISC must also be updated to support the MacOS X ABI.
989    
990    ----------------------------------------------------------------------
991    Name: Matthias Blume (http://www.tti-c.org/blume/)
992    Date: 2005/12/16 00:15:00 CST
993    Tag: blume-20051216-cm
994    Description:
995    
996    Improved error reporting and handling in CM.
997    
998    ----------------------------------------------------------------------
999    Name: Matthias Blume (http://www.tti-c.org/blume/)
1000    Date: 2005/11/21 14:00:00 CST
1001    Tag: blume-20051121-html-lib
1002    Description:
1003    
1004    Enabling $/html-lib.cm in config/preloads did not work.  This is fixed
1005    now.  (Since the anchor mapping for html-lib.cm is not yet in effect
1006    at the time when config/preloads is processed, the library has to
1007    be referred to by another name.  In 110.57 this would be
1008    $SMLNJ-LIB/HTML/html-lib.cm.  I arranged for $smlnj/smlnj-lib/html-lib.cm
1009    to be valid as well.)
1010    
1011    Thanks to Todd Wilson (Fresno) for alerting me to this issue.
1012    
1013    ----------------------------------------------------------------------
1014    Name: Matthias Blume (http://www.tti-c.org/blume/)
1015    Date: 2005/11/19 13:45:00 CST
1016    Tag: Release_110_57
1017    Description:
1018    
1019    Moved release tag for 110.57.
1020    
1021    ----------------------------------------------------------------------
1022    Name: Matthias Blume (http://www.tti-c.org/blume/)
1023    Date: 2005/11/19 23:35:00 CST
1024    Tag: blume-20051119-fish
1025    Description:
1026    
1027    Fixed a problem in config/install.sh where it tries to "fish" the
1028    name of the CM metadata directory from the wrong place (because
1029    the physical location of basis.cm has changed).  Also, corrected the
1030    path anchor for $/html-lib.cm.  (Thanks to M. Fluet for pointing out
1031    these problems.)
1032    
1033    ----------------------------------------------------------------------
1034    Name: Matthias Blume (http://www.tti-c.org/blume/)
1035    Date: 2005/11/16 14:30:00 CST
1036    Tag: blume-orig-110_57
1037    Description:
1038    
1039    New working version (110.57).  NEW BOOTFILES!
1040    
1041    UPDATE: The release tag has been moved to include a fix for a brown-paper-
1042            bag glitch (see above).
1043    
1044    ----------------------------------------------------------------------
1045    Name: Matthias Blume (http://www.tti-c.org/blume/)
1046    Date: 2005/11/16 10:25:00 CST
1047    Tag: blume-22051116-btrace
1048    Description:
1049    
1050    Fixed problem with bogus exception message when using back-trace
1051    facility.
1052    
1053    ----------------------------------------------------------------------
1054    Name: Matthias Blume (http://www.tti-c.org/blume/)
1055    Date: 2005/11/15 22:35:00 CST
1056    Tag: blume-22051115-array2copy
1057    Description:
1058    
1059    Added simple implementation of Array2.copy.  (Warning: mostly untested.)
1060    
1061    ----------------------------------------------------------------------
1062    Name: Matthias Blume (http://www.tti-c.org/blume/)
1063    Date: 2005/11/15 21:35:00 CST
1064    Tag: blume-22051115-versiontool
1065    Description:
1066    
1067    Reversed change to src/system/smlnj/internals/versiontool.cm.  This
1068    file gets loaded as a tool -- by the equivalent of CM.make during the
1069    run of CMB.make.  Thus, CMB's path configuration is meaningless for
1070    it.  Instead, it has the status of "user code", so it should use
1071    $/basis.cm to refer to the Basis library.  (At least that's true for
1072    the purpose of bootstrapping the previous change.  In the future it
1073    might make sense to have versiontool.cm refer to
1074    $smlnj/basis/basis.cm, i.e., the version of the Basis that the
1075    compiler itself uses.)
1076    
1077    Also patched src/system/testml to have it activate those extra anchor
1078    bindings in config/extrapathconfig.
1079    
1080    ----------------------------------------------------------------------
1081    Name: Matthias Blume (http://www.tti-c.org/blume/)
1082    Date: 2005/11/15 16:35:00 CST
1083    Tag: blume-22051115-libraries
1084    Description:
1085    
1086    This change affects the way the following libraries are tied into
1087    the system:
1088    
1089       $/basis.cm
1090       $/smlnj-lib.cm
1091       $/pp-lib.cm
1092       $/controls-lib.cm
1093       $/html-lib.cm
1094       $/ml-yacc-lib.cm
1095    
1096    These libraries are now internally (as seen from the source code
1097    of the implementation itself) known by the following names:
1098    
1099       $smlnj/basis/basis.cm
1100       $smlnj/smlnj-lib/smlnj-lib.cm
1101       $smlnj/smlnj-lib/pp-lib.cm
1102       $smlnj/smlnj-lib/controls-lib.cm
1103       $smlnj/smlnj-lib/html-lib.cm
1104       $smlnj/ml-yacc/ml-yacc-lib.cm
1105    
1106    This makes it possible to work with code that requires different
1107    versions of these libraries, and which refers to these libraries using
1108    their "default" names (i.e., the first set of names above).  In other
1109    words, one can un-define or re-define those default names without
1110    compromising the proper functioning of the compiler itself.
1111    
1112    A similar procedure had already been performed for several of the
1113    MLRISC libraries that are linked into the compiler.  I did some
1114    cleanup on this code.
1115    
1116    A new file in the config directory (named extrapathconfig) is
1117    responsible for setting up path anchors that the compiler itself does
1118    not need, but that are typically required by user code.
1119    
1120    ----------------------------------------------------------------------
1121    Name: Matthias Blume
1122    Date: 2005/11/07 17:05:00 CST
1123    Tag: blume-20051107-slice
1124    Description:
1125    
1126    Fixed erroneous out-of-bounds test in the "update" function of
1127    various *ArraySlice modules.  (Thanks to Vesa A. Norrman for pointing
1128    out the problem.)
1129    
1130    Pushed some Basis changes through ML-Lex, CML, and eXene.
1131    
1132    ----------------------------------------------------------------------
1133    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
1134    Date: 2005/11/07
1135    Description:
1136    Fixed a Basis incompatibility: The depreciated function Substring.all
1137    was removed (use Substring.full instead).
1138    
1139    ----------------------------------------------------------------------
1140    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
1141    Date: 2005/11/05
1142    Description:
1143    Tweaked interval set API in SML/NJ library; see the CHANGES file for details.
1144    
1145    ----------------------------------------------------------------------
1146    Name: Matthias Blume (http://www.tti-c.org/blume/)
1147    Date: 2005/11/02 16:25:00 CST
1148    Tag: blume-20051102-hex
1149    Description:
1150    
1151    * Runtime system bootstrap code now accepts hex digits in BOOTLIST
1152      in either upper case or lower case format.
1153    * Pushed changes to names of Pack<N>{Big,Little} structures through
1154      CML and eXene.
1155    
1156    ----------------------------------------------------------------------
1157    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
1158    Date: 2005/11/02
1159    Description:
1160    Fixed a Basis incompatibility: Pack<N>{Big,Little} structures should
1161    be called PackWord<N>{Big,Little}.
1162    
1163    ----------------------------------------------------------------------
1164    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
1165    Date: 2005/10/28
1166    Description:
1167    Fixed a minor Basis incompatibility: hex digits should be upper case.
1168    
1169    ----------------------------------------------------------------------
1170    Name: Matthias Blume (blume (at) tti - c (dot) org)
1171    Date: 2005/10/25 16:00:00 CDT
1172    Tag: Release_110_56
1173    Description:
1174    
1175    New working version (110.56).  NEW BOOTFILES!
1176    
1177    ----------------------------------------------------------------------
1178    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
1179    Date: 2005/10/25
1180    Description:
1181    Added interval sets to utility library (signatures INTERVAL_DOMAIN
1182    and INTERVAL_SET, and functor IntervalSetFn).
1183    
1184    ----------------------------------------------------------------------
1185    Name: John Reppy (http://www.cs.uchicago.edu/~jhr)
1186    Date: 2005/10/14
1187    Description:
1188    Add Zhong Shao's fix for datatype equality functions.
1189    
1190    ----------------------------------------------------------------------
1191    Name: Allen Leung (leunga (at) reservoir (dot) com)
1192    Date: 2005/10/14 12:30:00 EST
1193    Tag: leunga-20051014-x86-spill
1194    Description:
1195    
1196    Bug fix a bug found by Carl Hauser.
1197    There was a typo in the reload code for FCMP in x86SpillInstr.sml.
1198    
1199    ----------------------------------------------------------------------
1200    Name: Allen Leung (leunga (at) reservoir (dot) com)
1201    Date: 2005/10/14 11:15:00 EST
1202    Tag: leunga-20051014-x86-asm
1203    Description:
1204    
1205    Removed some debugging code in file x86Asm.sml.
1206    The function emit_operand was printing out debugging output.
1207    
1208    ----------------------------------------------------------------------
1209    Name: John Reppy
1210    Date: 2005/07/27
1211    Tag:
1212    Description:
1213    
1214    Fixed ml-lex to recognize "\r" as representing carriage return.
1215    
1216    ----------------------------------------------------------------------
1217    Name: John Reppy
1218    Date: 2005/07/27
1219    Tag:
1220    Description:
1221    
1222    Fixed ml-yacc to work on files with non-native end-of-line
1223    encodings (e.g., Windows text file on a Unix system).
1224    
1225    ----------------------------------------------------------------------
1226    Name: John Reppy
1227    Date: 2005/07/20
1228    Tag:
1229    Description:
1230    
1231    Added changes from Dominic Evans (oldmanuk (at) gmail (dot) com)
1232    to support HPUX 11.
1233    
1234    ----------------------------------------------------------------------
1235    Name: John Reppy
1236    Date: 2005/07/06
1237    Tag:
1238    Description:
1239    
1240    Changes to the SML/NJ library.  See smlnj-lib/CHANGES for details.
1241    
1242    ----------------------------------------------------------------------
1243    Name: Matthias Blume (blume (at) tti - c (dot) org)
1244    Date: 2005/07/06 00:45:00 CDT
1245    Tag: blume-20050706-slice-copy
1246    Description:
1247    
1248    Fixed reversed logic for deciding whether to "copy up" or "copy down"
1249    in *-array-slice.sml.
1250    
1251    ----------------------------------------------------------------------
1252    Name: Allen Leung (leunga (at) reservoir (dot) com)
1253    Date: 2005/05/31 17:00:00 EST
1254    Tag: leunga-20050531-cygwin-fault-2
1255    Description:
1256    
1257    A typo in the cygwin code fixed.
1258    
1259    ----------------------------------------------------------------------
1260    Name: Allen Leung (leunga (at) reservoir (dot) com)
1261    Date: 2005/05/31 16:47:00 EST
1262    Tag: leunga-20050531-cygwin-fault
1263    Description:
1264    
1265    Updated Cygwin's fault/signal handling to match the Windows version.
1266    Updated the export list.
1267    
1268    ----------------------------------------------------------------------
1269    Name: Matthias Blume (blume (at) tti - c (dot) org)
1270    Date: 2005/05/18 13:35:00 CDT
1271    Tag: Release_110_54
1272    Description:
1273    
1274    New working version (110.54).  NEW BOOTFILES!
1275    
1276    ----------------------------------------------------------------------
1277    Name: Matthias Blume (blume (at) tti - c (dot) org)
1278    Date: 2005/05/18 11:58:00 CDT
1279    Tag: blume-20050518-installer
1280    Description:
1281    
1282    Added support scripts for Mac OS X PackageMaker and modified
1283    config/install.sh so that it supports re-dumping a heap image
1284    after customization.
1285    
1286    ----------------------------------------------------------------------
1287    Name: Matthias Blume (blume (at) tti - c (dot) org)
1288    Date: 2005/05/18 10:55:00 CDT
1289    Tag: blume-20050518-realdiv-noovld
1290    Description:
1291    
1292    Un-overloaded / to work around bug in overloading resolution code.
1293    
1294    ----------------------------------------------------------------------
1295    Name: Matthias Blume (blume (at) tti - c (dot) org)
1296    Date: 2005/05/16 23:50:00 CDT
1297    Tag: blume-20050516-redump-heap
1298    Description:
1299    
1300    Added mechanism for re-creating a heap file for the interactive system
1301    after configuration variables have been changed.
1302    
1303       CM.redump_heap : string -> unit
1304    
1305    This is much like SMLofNJ.exportML, but starting from the resulting
1306    heap does not return to the caller of CM.redump_heap but
1307    restarts the interactive system from scratch.  The original call of
1308    CM.redump_heap does not return but ends the interactive session.
1309    Thus, CM.redump_heap is a lot like SMLofNJ.exportFn.
1310    
1311    Internally, redump_heap winds the dynamic execution context back to
1312    the point where the original heap image was created and re-executes
1313    the heap image generation code in the boot code.
1314    
1315    ----------------------------------------------------------------------
1316    Name: Matthias Blume (blume (at) tti - c (dot) org)
1317    Date: 2005/05/09 21:55:00 CDT
1318    Tag: blume-20050509-word64
1319    Description:
1320    
1321    Added a hack to the existing hack known as Word64 to make fromString
1322    behave correctly.  I am still not sure whether Word64.scan will work
1323    as specified with respect to the interaction of radix and prefix.
1324    
1325    ----------------------------------------------------------------------
1326    Name: Allen Leung (leunga (at) reservoir (dot) com)
1327    Date: 2005/05/04 11:50:00 EST
1328    Tag: leunga-20050504-checkgc
1329    Description:
1330    
1331    Added a gc protocol checking phase.  This phase is enabled with
1332    the flag "check-gc".  "debug-check-gc" turns on the verbose mode.
1333    
1334    ----------------------------------------------------------------------
1335    Name: Matthias Blume (blume (at) tti - c (dot) org)
1336    Date: 2005/05/04 10:45:00 CDT
1337    Tag: blume-20050504-intinf
1338    Description:
1339    
1340    Fixed a bug in the implementation of div and mod for IntInf.
1341    Thanks to Neophytos Michael for reporting the problem.
1342    
1343    ----------------------------------------------------------------------
1344    Name: Matthias Blume (blume (at) tti - c (dot) org)
1345    Date: 2005/05/04 10:35:00 CDT
1346    Tag: blume-20050504-join
1347    Description:
1348    
1349    Added a "join" combinator to the ParserComb module in smlnj-lib.cm.
1350    
1351    ----------------------------------------------------------------------
1352    Name: Matthias Blume (blume (at) tti - c (dot) org)
1353    Date: 2005/02/28 23:40:00 CST
1354    Tag: blume-20050228-mVar
1355    Description:
1356    
1357    Fixed serious bug (brown paper bag variety) in new implementation of
1358    structure Atom in CML.  (I had accidentally used a mailbox instead of
1359    an mvar, leaving the door open for races.)
1360    
1361    ----------------------------------------------------------------------
1362    Name: Matthias Blume (blume (at) tti - c (dot) org)
1363    Date: 2005/02/25 15:00:00 CST
1364    Tag: Release_110_53
1365    Description:
1366    
1367    New working version (110.53).  NEW BOOTFILES!
1368    
1369    ----------------------------------------------------------------------
1370    Name: Matthias Blume (blume (at) tti - c (dot) org)
1371    Date: 2005/02/25 14:50:00 CST
1372    Tag: blume-20050225-susp
1373    Description:
1374    
1375    Brought back SMLofNJ.Susp.  The underlying suspension type is the one
1376    implemented in Core -- which means that it is the same as the one used
1377    by the lazy extension.
1378    
1379    ----------------------------------------------------------------------
1380    Name: Matthias Blume (blume (at) tti - c (dot) org)
1381    Date: 2005/02/24 16:50:00 CST
1382    Tag: blume-20050224-cml-atom
1383    Description:
1384    
1385    Simpler and at the same time more general implementation of structure
1386    Atom in CML.
1387    
1388    ----------------------------------------------------------------------
1389    Name: Matthias Blume (blume (at) tti - c (dot) org)
1390    Date: 2005/02/15 17:35:00 CST
1391    Tag: blume-20050215-tools
1392    Description:
1393    
1394    Created new "tools" directory under "src" and moved "TraceDebugProf"
1395    there.
1396    
1397    ----------------------------------------------------------------------
1398    Name: Matthias Blume (blume (at) tti - c (dot) org)
1399    Date: 2005/02/10 17:55:00 CST
1400    Tag: blume-20050210-longlong
1401    Description:
1402    
1403    Implemented "long long" arguments and results for NLFFI.  (Only the
1404    PPC/MacOS implementation is complete, the other backends still need to
1405    be updated.)
1406    
1407    ----------------------------------------------------------------------
1408    Name: Matthias Blume (blume (at) tti - c (dot) org)
1409    Date: 2005/01/24 17:40:00 CST
1410    Tag: blume-20050124-mlyacc
1411    Description:
1412    
1413    Minor cleanup in ML-Yacc rule printing mechanism.  This should fix a
1414    problem with certain "as" patterns which previously got rendered
1415    using incorrect syntax.
1416    
1417    ----------------------------------------------------------------------
1418    Name: Matthias Blume (blume (at) tti - c (dot) org)
1419    Date: 2005/01/18 12:00:00 CST
1420    Tag: blume-20050118-profile
1421    Description:
1422    
1423    Made time profiling code (interrupt handler) in runtime system aware
1424    of new array representation.
1425    
1426    ----------------------------------------------------------------------
1427    Name: Matthias Blume (blume (at) tti - c (dot) org)
1428    Date: 2005/01/14 18:00:00 CST
1429    Tag: blume-20050114-heap2exec
1430    Description:
1431    
1432    Implemented new (but still experimental) heap2exec facility.  This is
1433    tested under Mac OS X and should work under Linux (will test shortly).
1434    It will probably also work on the Sparc (will test some time later).
1435    
1436      - removed old "HACKED_STANDALONE" hack from runtime
1437    
1438    To be able to test this, uncomment the request for "heap2asm" in
1439    config/targets prior to installation.  (Notice that this is different
1440    from "heap2exec" mentioned below.  Not a typo.)
1441    
1442    To perform an actual test, run the command
1443    
1444       $ bin/heap2exec heapfile execfile
1445    
1446    (You can put heap2exec on your shell's path.)
1447    
1448    For example, run
1449    
1450      $ bin/heap2exec bin/.heap/ml-yacc.ppc-darwin mly
1451    
1452    This will create a standalone executable called "mly" which you can
1453    then invoke directly as a command.
1454    
1455    ----------------------------------------------------------------------
1456    Name: Matthias Blume (blume (at) tti - c (dot) org)
1457    Date: 2005/01/07 11:44:00 CST
1458    Tag: blume-20050107-mlstring
1459    Description:
1460    
1461    fixed off-by-one error in ML_STRING macro (globals.c)
1462    
1463    ----------------------------------------------------------------------
1464    Name: Matthias Blume (blume (at) tti - c (dot) org)
1465    Date: 2004/12/23 18:00:00 CST
1466    Tag: blume-20041223-santa
1467    Description:
1468    
1469    Made ml-build script "smarter" (but only very little).
1470    
1471    ----------------------------------------------------------------------
1472    Name: Matthias Blume (blume (at) tti - c (dot) org)
1473    Date: 2004/12/21 15:05:00 CST
1474    Tag: blume-20041221-longlong
1475    Description:
1476    
1477    * Implemented access to signed and unsigned long long data in NLFFI.
1478    (The parameter-passing part of the picture has not complete. But
1479    data structure access seems to work.)
1480    
1481    * Fixed CM's incorrect assumption that the PPC is little-endian.
1482      (On the Mac, it is big-endian.  And that's currently our only
1483      PPC platform.)
1484    
1485    ----------------------------------------------------------------------
1486    Name: Matthias Blume (blume (at) tti - c (dot) org)
1487    Date: 2004/12/21 12:50:00 CST
1488    Tag: blume-20041221-memory
1489    Description:
1490    
1491    Some cleanup in the $c/memory.cm library: separated some concerns by
1492    moving allocation code and memory access code each into their own
1493    files.
1494    
1495    ----------------------------------------------------------------------
1496    Name: Allen Leung (leunga (at) reservoir (dot) com)
1497    Date: 2004/12/17 16:12:00 EST
1498    Tag: leunga-20041217-cygwin-smlnj-home
1499    Description:
1500    
1501        The Unix I/O library of SML/NJ on cygwin does not understand
1502    Windows style pathname, so problems arise when SMLNJ_HOME is set
1503    to a Windows style pathname.  _run-sml now converts SMLNJ_HOME
1504    to a POSIX pathname on cygwin.
1505    
1506    ----------------------------------------------------------------------
1507    Name: Matthias Blume (blume (at) tti - c (dot) org)
1508    Date: 2004/12/16 13:35:00 CST
1509    Tag: Release_110_52
1510    Description:
1511    
1512    Last-minute changes incorporated into 110.52.  Release tag moved.
1513    
1514    The changes:
1515       - HashString.hashString' -> HashString.hashSubstring
1516       - bug fix in UnivariateStats
1517    
1518    ----------------------------------------------------------------------
1519    Name: Matthias Blume (blume (at) tti - c (dot) org)
1520    Date: 2004/12/15 23:40:00 CST
1521    Tag: blume-20041215-hashSubstring
1522    Description:
1523    
1524    - HashString.hashString' -> HashString.hashSubstring
1525    - corresponding changes in atom.sml
1526    - "de-compressed" (aka. un-obfuscated) code for UnivariateStats and
1527      added some comments
1528    
1529    ----------------------------------------------------------------------
1530    Name: Matthias Blume (blume (at) tti - c (dot) org)
1531    Date: 2004/12/15 15:30:00 CST
1532    Tag: (Release_110_52)
1533    Description:
1534    
1535    New working version (110.52).  NEW BOOTFILES!
1536    
1537    ----------------------------------------------------------------------
1538    Name: Matthias Blume (blume (at) tti - c (dot) org)
1539    Date: 2004/12/15 12:45:00 CST
1540    Tag: blume-20041215-spaces
1541    Description:
1542    
1543    More on the space problem (this time for Win32).
1544    
1545    ----------------------------------------------------------------------
1546    Name: Matthias Blume (blume (at) tti - c (dot) org)
1547    Date: 2004/12/14 17:30:00 CST
1548    Tag: blume-20041214-spaces
1549    Description:
1550    
1551    Hacked some of the scripts (in particular: the installer) to cope with
1552    spaces in filenames a bit better.  But beware: the current "solution"
1553    is likely still full of bugs and inherently incomplete.  (We need to
1554    do away with those shell scripts for a comprehensive solution.)
1555    
1556    ----------------------------------------------------------------------
1557    Name: Matthias Blume (blume (at) tti - c (dot) org)
1558    Date: 2004/12/13 14:45:00 CST
1559    Tag: blume-20041213-ml-makedepend
1560    Description:
1561    
1562    Fixed bug in code for ml-makedepend.
1563    
1564    ----------------------------------------------------------------------
1565    Name: Matthias Blume (blume (at) tti - c (dot) org)
1566    Date: 2004/12/09 16:30:00 CST
1567    Tag: blume-20041209-statistics
1568    Description:
1569    
1570    Added two simple but potentially useful statistics modules to SML/NJ Library.
1571    (See CHANGES file there.)
1572    
1573    ----------------------------------------------------------------------
1574    Name: Matthias Blume (blume (at) tti - c (dot) org)
1575    Date: 2004/12/01 16:50:00 CST
1576    Tag: blume-20041201-atom
1577    Description:
1578    
1579    smlnj-lib:
1580    
1581      Added function HashString.hashString' for substrings.
1582      Hand-inlined CharVector.foldl into HashString (for speed).
1583      Modified implementation of structure Atom to avoid extracting
1584      strings from substrings unless necessary.
1585      (Also see CHANGES file for smlnj-lib.)
1586    
1587    ----------------------------------------------------------------------
1588    Name: Matthias Blume (blume (at) tti - c (dot) org)
1589    Date: 2004/11/24 22:15:00 CST
1590    Tag: blume-20041124-cml
1591    Description:
1592    
1593    Made sure CML compiles when Position = Int64.
1594    
1595    ----------------------------------------------------------------------
1596    Name: Matthias Blume (blume (at) tti - c (dot) org)
1597    Date: 2004/11/24 14:30:00 CST
1598    Tag: blume-20041124-position
1599    Description:
1600    
1601    The compiler can now be compiled in a mode that makes structure Position
1602    equal to Int64.  The default, however, is unchanged (Position = Int31)
1603    for the time being.
1604    
1605    To enable 64-bit positions, use the following procedure:
1606    
1607    1. Start sml
1608    2. Autoload $smlnj/cmb.cm (if not already autoloaded)
1609    3. Type
1610          #set (CMB.symval "USE_64_BIT_POSITIONS") (SOME 1);
1611    4. Run CMB.make() as usual.
1612    
1613    This is barely tested.  The only test so far was a little SML program
1614    counting the number of characters in an 8-gigabyte file by
1615    reading it character-by-character.  That test was successful.
1616    
1617    In support of 64-bit positions, a number of new functions have been
1618    added to the runtime system.
1619    
1620    ----------------------------------------------------------------------
1621    Name: Matthias Blume (blume (at) tti - c (dot) org)
1622    Date: 2004/11/23 14:45:00 CST
1623    Tag: blume-20041123-useFile
1624    Description:
1625    
1626    Fixed a problem with unhelpful error messages related to problems with
1627    .cm- or .sml files that appear as part of the sml command line.
1628    
1629    ----------------------------------------------------------------------
1630    Name: Matthias Blume (blume (at) tti - c (dot) org)
1631    Date: 2004/11/18 15:40:00 CST
1632    Tag: Release_110_51
1633    Description:
1634    
1635    New working version (110.51).  NEW BOOTFILES!
1636    
1637    ----------------------------------------------------------------------
1638    Name: Matthias Blume (blume (at) tti - c (dot) org)
1639    Date: 2004/11/18 15:35:00 CST
1640    Tag: <none>
1641    Description:
1642    
1643    Enabled dlopen and friends for FreeBSD (as recommended by Johannes 5
1644    Joemann).
1645    
1646    ----------------------------------------------------------------------
1647    Name: Allen Leung (leunga (at) reservoir (dot) com)
1648    Date: 2004/11/17 16:05:21 EST 2004
1649    Tag: leunga-20041117-mlrisc-live-kill
1650    Description:
1651    
1652       Added support for MLTree constructs LIVE and KILL
1653    to all the architectures.
1654    
1655    ----------------------------------------------------------------------
1656    Name: Matthias Blume (blume (at) tti - c (dot) org)
1657    Date: 2004/11/13 00:20:00 CST
1658    Tag: blume-20041113-versiontool
1659    Description:
1660    
1661    - Stripped down the versiontool: It now only handles the version number.
1662      The date string is generated at bootstrap time (during makeml).
1663    
1664    - In a previous commit, fixed a minor issue with how polyequal is being
1665      translated.  In particular, the code now "looks through" abstractions.
1666      This results in slightly fewer polyEqual warnings and hopefully slightly
1667      more efficient code.  Important examples for where this matters are
1668      the new int64 and word64 types.
1669    
1670    ----------------------------------------------------------------------
1671    Name: Matthias Blume (blume (at) tti - c (dot) org)
1672    Date: 2004/11/12 00:30:00 CST
1673    Tag: blume-20041112-int64
1674    Description:
1675    
1676    Structure Int64 fully hooked in.  (The implementation is not very
1677    efficient, though.)
1678    
1679    ----------------------------------------------------------------------
1680    Name: Matthias Blume (blume (at) tti - c (dot) org)
1681    Date: 2004/11/11 17:30:00 CST
1682    Tag: blume-20041111-more64
1683    Description:
1684    
1685    All the pieces of Word64 are now there, with the exception of the
1686    conversions from and to LargeWord. (Eventually these need to be identities,
1687    but for the time being they don't even make sense because LargeWord is
1688    32-bit wide.)
1689    
1690    Also started to add similar support for Int64, but major pieces of that
1691    are still missing.
1692    
1693    ----------------------------------------------------------------------
1694    Name: Matthias Blume (blume (at) tti - c (dot) org)
1695    Date: 2004/11/11 00:15:00 CST
1696    Tag: blume-20041111-word64
1697    Description:
1698    
1699    Structure Word64 is now (almost) complete, word literals and patterns
1700    seem to work.  There are a few odd pieces missing.  In particular,
1701    I didn't do the {from,to}LargeWord parts because LargeWord is still Word32
1702    at the moment.
1703    
1704    Making Word64 official would mean that LargeWord becomes Word64.  But
1705    this requires extreme care because most word-word conversions have to
1706    go through LargeWord, so making a mistake means loss of efficiency or
1707    worse.  Eventually there will be a solution similar to (but actually
1708    simpler than) what I did with IntInf.
1709    
1710    ----------------------------------------------------------------------
1711    Name: Matthias Blume (blume (at) tti - c (dot) org)
1712    Date: 2004/11/10 18:12:00 CST
1713    Tag: blume-20041110-64bit
1714    Description:
1715    
1716    More 64-bit hacking (but still not even half-way there yet).
1717    Also, some assorted improvements to the handling of 8-bit words.
1718    
1719    ----------------------------------------------------------------------
1720    Name: Matthias Blume (blume (at) tti - c (dot) org)
1721    Date: 2004/11/09 17:50:00 CST
1722    Tag: <none>
1723    Description:
1724    
1725    Started adding some infrastructure for supporting 64-bit int- and
1726    word-types.  (Still in its very early stages.)
1727    
1728    ----------------------------------------------------------------------
1729    Name: Matthias Blume (blume (at) tti - c (dot) org)
1730    Date: 2004/10/28 10:45:00 CDT
1731    Tag: Release_110_50
1732    Description:
1733    
1734    New working version (110.50).  NEW BOOTFILES!
1735    
1736                 =====================
1737    
1738    Also:
1739    
1740      - Changend config/srcarchiveurl from a file just
1741        containing the URL string into a file containing
1742        shell script code.  The code has access to the $VERSION variable.
1743      - Made corresponding changes to config/install.sh and config/unpack.
1744      - Default contents of config/srcarchiveurl uses $VERSION and
1745        normally does not have to be edited to reflect a version change.
1746    
1747      (As a result, a version change can be done by just editing
1748       config/version, the rest is now automatic.)
1749    
1750    ----------------------------------------------------------------------
1751    Name: Matthias Blume (blume (at) tti - c (dot) org)
1752    Date: 2004/10/27 17:50:00 CDT
1753    Tag: blume-20041027-btrace-msg
1754    Description:
1755    
1756    BackTrace.monitor now also reports the source of the exception that
1757    triggered the trace.
1758    
1759    ----------------------------------------------------------------------
1760    Name: Matthias Blume (blume (at) tti - c (dot) org)
1761    Date: 2004/10/27 17:20:00 CDT
1762    Tag: blume-20041027-x86-c-calls
1763    Description:
1764    
1765    This is the HISTORY entry for two earlier commits, both concerning
1766    the x86 c-calls code in MLRISC:
1767    
1768      - added a missing LOAD in the code that deals with struct arguments
1769      - made sure the caller does not add the wrong number of bytes to the
1770        stack pointer after a call of a function returning a struct
1771        (the callee already pops the implicit argument which points to
1772         the space reserved for the result)
1773    
1774    ----------------------------------------------------------------------
1775    Name: Allen Leung (leunga (at) reservoir (dot) com)
1776    Date: 2004/10/24 14:00:00 EST
1777    Tag: leunga-20041024-x86-gas-fucomip
1778    Description:
1779    
1780       John discovered a bug in the syntax of fucomip.
1781       The opcodes FU?COMIP? have been changed to
1782    
1783           fu?comip? %st(i), %st
1784    
1785    ----------------------------------------------------------------------
1786    Name: Matthias Blume (blume (at) tti - c (dot) org)
1787    Date: 2004/10/20 15:06:00 CDT
1788    Tag: blume-20041020-standalone-backtrace
1789    Description:
1790    
1791    Added a mechanism for getting back-trace information from standalone
1792    programs.  Here is how it works:
1793    
1794       1. The part of the program from which you want to get backtrace
1795          information (usually the whole program) should be wrapped with
1796          BackTrace.monitor.  This is a (unit->'a)->'a function, and your
1797          main program could be modified from something like
1798    
1799             fun main (pgm, args) = ...
1800    
1801         to
1802    
1803            fun main (pgm, args) = BackTrace.monitor (fn () => ...)
1804    
1805       2. To be able to access BackTrace.monitor, you have to add
1806          library $smlnj-tdp/plugins.cm to the .cm file that contains your
1807          main function.
1808    
1809       3. Remove all compiled code (i.e., all the .cm/ subdirectories that
1810          CM might have created in the past for your project).
1811    
1812       4. Build the system using this command line:
1813    
1814             ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm \
1815                      myprog.cm MyProg.main myprog
1816    
1817          instead of the usual
1818    
1819             ml-build myprog.cm MyProg.main myprog
1820    
1821    I changed a library name:
1822    
1823       $/trace-debug-profile.cm --> $smlnj-tdp/plugins.cm
1824    
1825    New libraries:
1826    
1827       $smlnj-tdp/back-trace.cm
1828          -- when loaded causes the back-trace plugin to be installed
1829       $smlnj-tdp/coverage.cm
1830          -- when loaded causes the coverage plugin to be installed
1831    
1832    ----------------------------------------------------------------------
1833    Name: Matthias Blume (blume (at) tti - c (dot) org)
1834    Date: 2004/10/18 16:45:00 CDT
1835    Tag: blume-20041018-groupowner
1836    Description:
1837    
1838    Added an "obsolete" warning for the "group owner" syntax to CM's parser.
1839    
1840    Eliminated group owner specs from .cm files throughout the source tree.
1841    
1842    ----------------------------------------------------------------------
1843    Name: Matthias Blume (blume (at) tti - c (dot) org)
1844    Date: 2004/10/15 15:45:00 CDT
1845    Tag: blume-20041015-coverage
1846    Description:
1847    
1848    * Test coverage tool added!
1849    * Further reorganization of tracing-, debugging-, and profiling support:
1850    
1851        - moved original BTImp -- now called BackTrace -- into a separate
1852          library called $/trace-debug-profile.cm
1853        - eliminated all mentions of BTrace from SMLofNJ.Internals
1854        - only the instrumentation mechanism is now left in the compiler proper
1855        - BackTrace module is a plugin which is NOT plugged in by default
1856        - Coverage module is another such plugin
1857    
1858    To get the benefits of any of these plugin modules, the code in
1859    question must be compiled with tdp instrumentation turned on.  This
1860    can be done by setting SMLofNJ.Internals.TDP.mode to true.
1861    (The ref cell is also controlled via the -Ctdp.instrument=... switch.)
1862    
1863    Plugins are selected at link time.  (Pre-compiled instrumented code
1864    can be re-loaded with different plugins in effect.)  When an
1865    instrumented module is linked, whatever plugins are at that time
1866    enabled will come into effect for that module.
1867    
1868    To enable the back-trace plugin, load library $/trace-debug-profile.cm
1869    and invoke BackTrace.install() (e.g., from the interactive prompt).
1870    To enable the coverage plugin, load the same library and invoke
1871    Coverage.install().
1872    
1873    Back-traces are generated automatically on uncaught exceptions and
1874    when the code in question explicitly invokes BackTrace.trigger().
1875    
1876    Coverage (and execution frequency-) information must be queried
1877    explicitly by calling Coverage.not_covered and Coverage.hot_spots.
1878    
1879    ----------------------------------------------------------------------
1880    Name: Matthias Blume (blume (at) tti - c (dot) org)
1881    Date: 2004/10/14 17:40:00 CDT
1882    Tag: blume-20041014-tdp-core
1883    Description:
1884    
1885    Snapshot of a significant overhaul of how the trace/debug/profile support
1886    is hooked into the system (specifically: Core and SMLofNJ.Internals).
1887    
1888    ----------------------------------------------------------------------
1889    Name: Matthias Blume (blume (at) tti - c (dot) org)
1890    Date: 2004/10/13 16:34:00 CDT
1891    Tag: blume-20041013-tdp
1892    Description:
1893    
1894    Some rationalization of names:
1895    
1896       structure BTrace -> structure TDPInstrument
1897       etc.
1898    
1899    This is is preparation of using the original back-trace
1900    instrumentation for other purposes.  "TDP" stands for
1901    Trace/Debug/Profile.
1902    
1903    The control flag controlling whether instrumentation is on or off is now
1904    registered under a different name, so instead of running sml as
1905    
1906     sml -Cinstrument.btrace-mode=true
1907    
1908    one has to say
1909    
1910     sml -Ctdp.instrument=true
1911    
1912    ----------------------------------------------------------------------
1913    Name: Matthias Blume (blume (at) tti - c (dot) org)
1914    Date: 2004/10/11 16:37:00 CDT
1915    Tag: blume-20041011-regions
1916    Description:
1917    
1918    Made some minor modifications to elabcore.sml to have source regions
1919    be propagated more tightly -- resulting in better (i.e., smaller)
1920    regions being reported in error- and debug messages.
1921    
1922    ----------------------------------------------------------------------
1923    Name: Matthias Blume (blume (at) tti - c (dot) org)
1924    Date: 2004/10/08 22:50:00 CDT
1925    Tag: blume-20041008-cmkw
1926    Description:
1927    
1928    Fixed handling of keywords in .cm files: After seeing "is" the lexer
1929    treats subsequent occurrences of "group", "library", "source", "is",
1930    "*", and "-" as ordinary identifiers rather than keywords.
1931    
1932    Most seriously, this fixes a problem with CM's "shell" tool.  The tool
1933    is supposed to accept a tool argument called "source", but this did
1934    not work because of the clash with the keyword.
1935    
1936    ----------------------------------------------------------------------
1937    Name: Matthias Blume (blume (at) tti - c (dot) org)
1938    Date: 2004/10/07 16:00:00 CDT
1939    Tag: blume-20041007-cleanup
1940    Description:
1941    
1942    Assorted cleanup work:
1943    
1944      - got rid of intstrmap in favor of using the library's
1945        hash table implementation
1946      - threw out most of the pathnames stuff, as it was not used anyway
1947      - simplified tokentable implementation
1948      - fixed some minor spelling errors
1949    
1950    ----------------------------------------------------------------------
1951    Name: Matthias Blume (blume (at) tti - c (dot) org)
1952    Date: 2004/10/06 15:15:15 CDT
1953    Tag: blume-20041006-handler
1954    Description:
1955    
1956    Cleaned up the absyn to reflect the invariant that HANDLE always
1957    carries a FNexp as part of the type definition.  This eliminates some
1958    superfluous sanity checks at runtime down the road.
1959    
1960    Some minor cleanup of the btrace code.
1961    
1962    ----------------------------------------------------------------------
1963    Name: Matthias Blume (blume (at) tti - c (dot) org)
1964    Date: 2004/10/01 10:20:30 CDT
1965    Tag: blume-20041001-slave
1966    Description:
1967    
1968    Added hack to make slave mode work in the presence of the version
1969    tool.  (Still, since the master does two passes over the code for
1970    CMB.make, the release number gets bumped twice when slaves are
1971    attached.  I don't know if this is worth fixing...)
1972    
1973    ----------------------------------------------------------------------
1974    Name: Matthias Blume (blume (at) tti - c (dot) org)
1975    Date: 2004/09/30 10:55:00 CDT
1976    Tag: blume-20040930-version
1977    Description:
1978    
1979    * Moved the "version" magic into its own little library under
1980      src/system/smlnj/internal.  This avoids expensive reconstruction of
1981      a stable src/compiler/core.cm.
1982    
1983    * At the same time, structure CompilerVersion is now known as
1984      structure SMLNJVersion.
1985    
1986    * Arranged for the version tool to NOT kick in when rebuilding the system
1987      (makeml -rebuild, fixpt).  Otherwise one would never reach a fixpoint.
1988      Also, loading the versiontool does not work when rebuilding the system
1989      because CM is not properly initialized at that time.
1990    
1991    ----------------------------------------------------------------------
1992    Name: Matthias Blume (blume (at) tti - c (dot) org)
1993    Date: 2004/09/29 14:00:00 CDT
1994    Tag: blume-20040929-autoversion
1995    Description:
1996    
1997    Implemented some CM magic to have
1998        file src/compiler/TopLevel/main/version.sml
1999    generated automagically.
2000    The version is taken from two files: config/version and config/release.
2001    The first is expected to contain a two-part version number such as 110.49.
2002    The second should contain a single number, but it may be missing.
2003    
2004    If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
2005    time the version tool is loaded (which is the first time you say CMB.make),
2006    then the tool will increment the value stored in config/release every
2007    time CMB.make is invoked.
2008    
2009    The binfile format is now insensitive to anything beyond the first
2010    two components of a version number, so bumping the release does not render
2011    binfiles incompatible.  Auto-bumping can be used to keep track of versions
2012    during development without invalidating existing binfiles.
2013    
2014    In any case, every CMB.make updates the date information in version.sml.
2015    (This is the date that is printed in the banner.)
2016    
2017    ----------------------------------------------------------------------
2018    Name: Matthias Blume (blume (at) tti - c (dot) org)
2019    Date: 2004/09/28 10:53:00 CDT
2020    Tag: blume-20040928-controls
2021    Description:
2022    
2023    Some cleanup of the controls code.
2024    
2025    ----------------------------------------------------------------------
2026    Name: Matthias Blume (blume (at) tti - c (dot) org)
2027    Date: 2004/09/27 22:08:00 CDT
2028    Tag: blume-20040927-controls
2029    Description:
2030    
2031    Added two pieces of functionality to the Controls interface:
2032    
2033    1.   val save'restore: 'a control -> unit -> unit
2034    
2035       grabs the current value of the control in stage 1 and restores it
2036       in stage 2.
2037    
2038    2.   val set' : 'a control * 'a -> unit -> unit
2039    
2040       stores the given value into the control in stage 2 (i.e., delayed)
2041       but does all error checking in stage 1.
2042       (This is for string controls that need to do parse their argument --
2043        something that might fail.  In some cases, notably in CM, one
2044        already knows the intended argument but wants to delay the actual
2045        assignment until a time when error recovery would be more difficult.)
2046    
2047    Changed the handling of controls in tool arguments to classes "sml" and
2048    "lazysml":
2049       - use Controls.save'restore as a more robust way of restoring the
2050         old value (in particular: without having to re-parse the string)
2051       - use controls to handle the "overload" keyword in the init group
2052         (I believe this change actually fixes a long-standing obscure bug.)
2053    
2054    ----------------------------------------------------------------------
2055    Name: Matthias Blume (blume (at) tti - c (dot) org)
2056    Date: 2004/09/27 17:00:00 CDT
2057    Tag: blume-20040927-lazysml
2058    Description:
2059    
2060    Added a new tool class called "lazysml" to CM's tool chest.  The only
2061    difference to "sml" is that compilation is done with Control.lazysml
2062    set to true.  A source of class "lazysml" is automatically recognized
2063    by a file name suffix of ".lml".
2064    
2065    In addition to the above feature, the original class "sml" now also
2066    supports a tool argument "lazy" which has the same effect.  As a
2067    result, the following three lines are equivalent:
2068    
2069        foo.sml : lazysml
2070        foo.sml : sml (lazy)
2071        foo.sml (lazy)
2072    
2073    The setting goes into effect both during parsing and during
2074    compilation.  The original setting is restored right after parsing and
2075    after compilation, respectively.
2076    
2077    In addition to all the above, there is also a general mechanism to set
2078    ANY of the "controls" that are available at the command line via
2079    "-C..." on a per-sml-file basis.  The same rules that apply for "lazy"
2080    apply as well. (In fact, "lazy" is implemented as a special case of
2081    the general mechanism.)
2082    
2083    The .cm file syntax uses a new keyword tool argument called "with".
2084    There are several ways of indicating the desired settings:
2085    
2086        foo.sml (with:parser.quotations=true)
2087        foo.sml (with:(name:parser.quotations value:true))
2088        foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
2089        foo.sml (with:(name1=value1 name2=value2 ...))
2090        foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
2091    
2092        etc.
2093    
2094    Another possible abbreviation is to leave out the =v or value:v part
2095    if the name refers to a boolean control (in which case the value is
2096    taken to be true).  Thus, one could get lazy sml also by saying:
2097    
2098        foo.sml (with:parser.lazy-keyword=true)
2099        foo.sml (with:parser.lazy-keyword)
2100        foo.sml (with:(name:parser.lazy-keyword value:true))
2101        foo.sml (with:(name:parser.lazy-keyword))
2102    
2103    ----------------------------------------------------------------------
2104    Name: Matthias Blume (blume (at) tti - c (dot) org)
2105    Date: 2004/09/24 16:22:00 CDT
2106    Tag: blume-20040924-ppc-long-branch
2107    Description:
2108    
2109    Turned message about "emiting long form of branch" off by default.
2110    Added a control flag to turn it back on when desired.
2111    
2112    ----------------------------------------------------------------------
2113    Name: Matthias Blume (blume (at) tti - c (dot) org)
2114    Date: 2004/09/24 16:05:00 CDT
2115    Tag: blume-20040924-rounding
2116    Description:
2117    
2118    Applied patch for setting rounding modes under Mac OS X.  Thanks to
2119    Melissa O'Neill for providing the code!
2120    
2121    ----------------------------------------------------------------------
2122    Name: Matthias Blume (blume (at) tti - c (dot) org)
2123    Date: 2004/09/23 17:30:00 CDT
2124    Tag: blume-20040923-envvars
2125    Description:
2126    
2127    1. Changed definition of type ControlRegistry.registry_tree to
2128       include control_info (i.e., the name of the controlling environment
2129       variable).
2130    
2131    2. Added command-line flags -e and -E to print the names of environment
2132       variables that can be used to control internal settings.
2133       (This uses the new API mentioned in 1.)
2134    
2135    ----------------------------------------------------------------------
2136    Name: Matthias Blume (blume (at) tti - c (dot) org)
2137    Date: 2004/09/13 16:50:00 CDT
2138    Tag: Release_110_49
2139    Description:
2140    
2141    New working version (110.49).  NEW BOOTFILES!
2142    
2143    ----------------------------------------------------------------------
2144    Name: Matthias Blume
2145    Date: 2004/09/13 16:20:00 CDT
2146    Tag: blume-20040913-config-mlrisc
2147    Description:
2148    
2149    Put target "mlrisc" back into the default list.
2150    (There is no harm in having it, and some users have expressed their
2151    wish to have "mlrisc" included by default.)
2152    
2153    ----------------------------------------------------------------------
2154    Name: John Reppy
2155    Date: 2004/09/13
2156    Tag: jhr-20040913-signals
2157    Description:
2158    
2159    Fixed the signal masking code to properly nest mask/unmask operations
2160    on a per-signal basis.
2161    
2162    ----------------------------------------------------------------------
2163    Name: Matthias Blume (blume (at) tti - c (dot) org)
2164    Date: 2004/09/08 13:20:00 CDT
2165    Tag: blume-20040908-heap-magic
2166    Description:
2167    
2168    Bumped the heap macig number to 0x09082004 to account for the changed
2169    layout of the ML frame under MacOS X.
2170    
2171    ----------------------------------------------------------------------
2172    Name: Allen Leung (leunga (at) reservoir (dot) com)
2173    Date: 2004/09/03 11:26:00 EST
2174    Tag: leunga-20040903-cygwin-install
2175    Description:
2176    
2177       Added a patch to _arch-n-opsys to enable the Cygwin runtime.
2178    The Cygwin runtime is turned on by setting the environment
2179    variable SMLNJ_CYGWIN_RUNTIME to 1.
2180    
2181    ----------------------------------------------------------------------
2182    Name: Matthias Blume (blume (at) tti - c (dot) org)
2183    Date: 2004/08/31 17:15:00 CDT
2184    Tag: blume-20040831-core
2185    Description:
2186    
2187    Added some exports to src/compiler/core.cm upon request by J. Joemann.
2188    
2189    ----------------------------------------------------------------------
2190    Name: Matthias Blume (blume (at) tti - c (dot) org)
2191    Date: 2004/08/30 17:55:00 CDT
2192    Tag: blume-20040830-installer
2193    Description:
2194    
2195    Upon request by Johannes Joemann:
2196    
2197    - improved ML code of installer to fall back to coping when renaming
2198      fails (i.e., when source and target are on different file systems);
2199      the code compiles but has yet to be tested in anger
2200    - removed mlrisc from list of default targets (config/targets)
2201    
2202    ----------------------------------------------------------------------
2203    Name: Matthias Blume (blume (at) tti - c (dot) org)
2204    Date: 2004/08/27 17:20:00 CDT
2205    Tag: blume-20040827-ptreql
2206    Description:
2207    
2208    Added ptreql primop to structure InlineT (upon request from Larry
2209    Paulson).
2210    
2211    ----------------------------------------------------------------------
2212    Name: Allen Leung (leunga (at) reservoir (dot) com)
2213    Date: 2004/08/15 21:21:00 EST
2214    Tag: leunga-110_48-udgraph
2215    Description:
2216    
2217    Another bug fix from Carl Hauser:
2218    
2219    diff /net/niflab/smlnj48/src/MLRISC/graphs/udgraph.sml udgraph.sml
2220    > 48c48
2221    > <              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then es else
2222    > e::L)
2223    > ---
2224    > >              | rmv((e as (k,_))::es,L) = rmv(es,if k = i then L else e::L)
2225    > Without this, any deletion of an edge in an undirected graph does severe
2226    > violence to the graph.
2227    
2228    ----------------------------------------------------------------------
2229    Name: Allen Leung (leunga (at) reservoir (dot) com)
2230    Date: 2004/08/10 23:35:00 EST
2231    Tag: leunga-110_48-ppc
2232    Description:
2233    
2234       The IBM/MacOS syntax switch on PPC was incorrectly swapped.
2235    
2236    ----------------------------------------------------------------------
2237    Name: Matthias Blume (blume (at) tti - c (dot) org)
2238    Date: 2004/08/10 12:00:00 CDT
2239    Tag: Release_110_48
2240    Description:
2241    
2242    New working version (110.48).  NEW BOOTFILES!
2243    
2244    ----------------------------------------------------------------------
2245    Name: Allen Leung (leunga (at) reservoir (dot) com)
2246    Date: 2004/08/09 12:21:00 EST
2247    Tag: leunga-110_47-dijsktra
2248    Description:
2249    
2250    Bug fix from Carl Hauser:
2251    
2252    single_source_shortest_paths in dijkstra.sml was observed to get wrong
2253    answers (by comparing to single_source_shortest_paths in bellman-ford.sml).
2254    
2255    The problem is that following the expression A.update(dist,s,Num.zero)
2256    it is necessary to update the priority queue using Q.decreaseWeight(Q,s).
2257    
2258    ----------------------------------------------------------------------
2259    Name: Matthias Blume (blume (at) tti - c (dot) org)
2260    Date: 2004/08/06 18:10:00 CDT
2261    Tag: blume-20040806-cmdline
2262    Description:
2263    
2264    Fiddled with handling of command-line options:
2265    
2266      * sml now quits after processing the command line
2267        if -H, -S, -h<n>, or -s<n> appears as the last
2268        command-line argument
2269      * a new option -q terminates the session when encountered on
2270        the command line; subsequent arguments will be ignored
2271      * bug fixes: short (erroneous) arguments are no longer ignored
2272        completely
2273    
2274    ----------------------------------------------------------------------
2275    Name: Allen Leung (leunga (at) reservoir (dot) com)
2276    Date: 2004/08/04 18:17:00 EST
2277    Tag: leunga-110_47-ppc-ibm-asm
2278    Description:
2279    
2280      - Added minimal IBM assembly syntax support for PowerPC.
2281    
2282      - Cygwin: manually changed the file cygwin.def.  Some exported symbols have
2283        been altered in the runtime.  We need an automatic way to keep the file
2284        in sync.
2285    
2286    ----------------------------------------------------------------------
2287    Name: Matthias Blume (blume (at) tti - c (dot) org)
2288    Date: 2004/08/04 14:00:00 CDT
2289    Tag: Release_110_47
2290    Description:
2291    
2292    New working version (110.47).  NEW BOOTFILES!
2293    
2294    ----------------------------------------------------------------------
2295    Name: Matthias Blume (blume (at) tti - c (dot) org)
2296    Date: 2004/08/03 14:25:00 CDT
2297    Tag: blume-20040803-callingconv
2298    Description:
2299    
2300    Added low-level support for choosing C calling conventions by
2301    twiddling the type of rawccall.  (See
2302    src/compiler/Semant/types/cproto.sml for details.)
2303    
2304    ----------------------------------------------------------------------
2305    Name: Matthias Blume (blume (at) tti - c (dot) org)
2306    Date: 2004/08/02 15:55:00 CDT
2307    Tag: blume-20040802-backout
2308    Description:
2309    
2310    Backed out of change to win32-filesys.c.  The earlier patch to
2311    get_file_time caused CM to produce files with the wrong time stamp.
2312    
2313    ----------------------------------------------------------------------
2314    Name: Matthias Blume (blume (at) tti - c (dot) org)
2315    Date: 2004/08/02 14:45:00 CDT
2316    Tag: blume-20040802-nlffi-win32
2317    Description:
2318    
2319    Added NLFFI support for Win32, adapted from a patch provided by David
2320    Hansel.  This is currently completely untested.  Also, the issue
2321    concerning stdcall vs. ccall is still unresolved.
2322    
2323    ----------------------------------------------------------------------
2324    Name: Matthias Blume (blume (at) tti - c (dot) org)
2325    Date: 2004/07/30 17:55:00 CDT
2326    Tag: blume-20040730-various
2327    Description:
2328    
2329    Gearing up towards 110.47...
2330    
2331    - various minor bugfixes to ml-nlffigen
2332    - a beginning of a manual for nlffi
2333    
2334    - eliminated 'export name=value' in config/install.sh as this does
2335      not work with certain versions of /bin/sh
2336      (Thanks to David King at Motorola for catching this.)
2337    
2338    - several bugfixes provided or suggested by David Hansel at Reactive Systems:
2339      - added a test for tm==NULL to gmtime.c and localtime.c
2340      - applied patch for incorrect GetFileTime under win32
2341      - toSeconds -> toMilliseconds in Win32/win32-process.sml
2342    
2343    ----------------------------------------------------------------------
2344    Name: Matthias Blume (blume (at) tti - c (dot) org)
2345    Date: 2004/07/21 18:20:00 CDT
2346    Tag: blume-20040721-nlffigen
2347    Description:
2348    
2349    - Fixed minor issue in ml-nlffigen: Now generate structure T_foo
2350      for a typedef to an incomplete type, but leave out the "typ" member.
2351      (This is just for consistency.)
2352    - Started to produce what is supposed to become better (i.e., comprehensive)
2353      documentation of what ml-nlffigen does and produces.
2354    
2355    ----------------------------------------------------------------------
2356    Name: Matthias Blume (blume (at) tti - c (dot) org)
2357    Date: 2004/07/14 16:25:00 CDT
2358    Tag: blume-20040714-union
2359    Description:
2360    
2361    Added C_UNION to c-calls/c-types.sml and updated the machinery
2362    (ml-nlffigen, cproto.sml) that conveys C function interface
2363    information to the code generator.
2364    
2365    However, the actual architecture-specific implementation of function
2366    arguments and results that are C unions is still not implemented.
2367    
2368    ----------------------------------------------------------------------
2369    Name: Allen Leung (leunga (at) reservoir (dot) com)
2370    Date: 2004/07/14 14:38:00 EST
2371    Tag: leunga-110_46_1-ppc-lwzu
2372    Description:
2373    
2374        Added these instructions to the PowerPC architecture:
2375        LBZU(X), LHZU(X), LWZU(X),
2376        STWU(X), STFDU, STFSU
2377    
2378        etc...
2379    
2380        Note: I haven't added their instruction encoding into the description.
2381    
2382    ----------------------------------------------------------------------
2383    Name: Allen Leung (leunga (at) reservoir (dot) com)
2384    Date: 2004/07/13 15:04:00 EST
2385    Tag: leunga-110_46_1-ppc-lwarx
2386    Description:
2387    
2388       Added the two instructions LWARX and STWCX to the PowerPC
2389    instruction set.
2390    
2391       A (untested) rewrite of loop-structure.sml.  The old version
2392    is completely broken.
2393    
2394    ----------------------------------------------------------------------
2395    Name: Matthias Blume (blume (at) tti - c (dot) org)
2396    Date: 2004/07/13 13:50:00 CDT
2397    Tag: blume-20040713-nlffi
2398    Description:
2399    
2400    - use paramAlloc to report c-calls with too many arguments
2401      (for PPC version where parameter area is pre-allocated)
2402    - added ccall_maxargspace to machspec (to implement the above)
2403    - made "make" commend in CM's "make" tool configurable
2404    - added option (default: on) for passing the name of the SML/NJ's "bin"
2405      directory to "make"; the call looks like this:
2406    
2407         make <options> SMLNJ_BINDIR=<dir> <target>
2408    
2409      This can be used by the Makefile to, e.g., pick the "right" version
2410      of ml-nlffigen.
2411    - minor code tweaks
2412    
2413    ----------------------------------------------------------------------
2414    Name: Matthias Blume (blume (at) tti - c (dot) org)
2415    Date: 2004/07/12 22:50:00 CDT
2416    Tag: blume-110_46_1-macosx-nlffi
2417    Description:
2418    
2419    NLFFI under Mac OS X now working (sort of).  This is largely untested,
2420    though.
2421    
2422    Note:  1. You have to make a new, clean build of the runtime system.
2423           2. There are new BOOTFILES, you have to use them!
2424              (Doing the bootstrap process yourself would be *very* painful!
2425               If you absolutely have to do it, build the system under
2426               a different architecture and then cross-compile.)
2427    
2428    Version bumped to 110.46.1 to account for runtime data format changes.
2429    
2430    ----------------------------------------------------------------------
2431    Name: Matthias Blume (blume (at) tti - c (dot) org)
2432    Date: 2004/06/18 14:30:00 CDT
2433    Tag: blume-20040618-unix
2434    Description:
2435    
2436    Changed the implementation of structure Unix so that the same stream
2437    is returned every time one of the {text,bin}{In,Out}streamOf functions
2438    is invoked on the same proc.  This is not what the spec currently
2439    says -- although IMO it arguably should.  (See discussion below.)
2440    
2441    ----------------------------------------------------------------------
2442    Name: Matthias Blume (blume (at) tti - c (dot) org)
2443    Date: 2004/06/17 18:15:00 CDT
2444    Tag: Release_110_46
2445    Description:
2446    
2447    New working version (110.46).  NEW BOOTFILES!
2448    
2449    ----------------------------------------------------------------------
2450    Name: Matthias Blume (blume (at) tti - c (dot) org)
2451    Date: 2004/06/17 17:20:00 CDT
2452    Tag: blume-20040617-timer-unix
2453    Description:
2454    
2455    Changed the interface of structures Timer and Unix to match the most
2456    recent Basis spec.
2457    
2458    In the case of Unix there still seems to be an open/weird issue:
2459    
2460       The {text,bin}{In,Out}streamOf functions are supposed to create
2461       fresh streams whenever they are called -- as opposed to have them
2462       return the same stream every time.  This design is supposed to
2463       prevent space leaks caused by proc values hanging on to streams.
2464    
2465       The reap function, on the other hand, is supposed to close the
2466       streams.  This cannot be done without having a handle on the
2467       stream in proc after all...
2468    
2469    I took the liberty to implement the following stopgap solution:
2470    
2471      The proc value hangs on to the most recently created stream(s).
2472      Reap closes those.  If either or both of the two streams hadn't
2473      been created at all yet, then reap will close the corresponding
2474      file descriptors directly.
2475    
2476    PS: I don't understand the original space leak argument anymore.  If
2477    a proc hangs on to the imperative stream, then I/O operations on those
2478    will advance the state of the cached stream and avoid the space leak.
2479    
2480    ----------------------------------------------------------------------
2481    Name: Matthias Blume (blume (at) tti - c (dot) org)
2482    Date: 2004/05/28 16:45:00 CDT
2483    Tag: blume-20040528-basis
2484    Description:
2485    
2486    Added signature PACK_REAL and exported functor PrimIO.
2487    
2488    ----------------------------------------------------------------------
2489    Name: Matthias Blume (blume (at) tti - c (dot) org)
2490    Date: 2004/05/25 16:00:00 CDT
2491    Tag: blume-20040525-group-owner
2492    Description:
2493    
2494    CM now ignores (but still accepts) the "owner" information in group
2495    descriptions.  The owner of a group is its next enclosing
2496    library. Each group must have a unique owner.  (There is a virtual
2497    "toplevel" library that owns groups which are not nested within a real
2498    library.)  Previously, each group had to explicitly declare its owner,
2499    and CM would check that such a declaration is correct.  The new scheme
2500    is to have CM check that for each group there is precisely one owning
2501    library.
2502    
2503    The advantage of the new scheme is that the programmer no longer needs
2504    to maintain the somewhat annoying owner information.  The downside is
2505    that CM cannot enforce the ownership rule across multiple runs of
2506    CM.make.  Fortunately, enclosing the same group in two different
2507    libraries A and B which are not part of the same program does not
2508    cause real problems.
2509    
2510    ----------------------------------------------------------------------
2511    Name: Matthias Blume (blume (at) tti - c (dot) org)
2512    Date: 2004/05/20 16:00:00 CDT
2513    Tag: blume-20040520-win32
2514    Description:
2515    
2516    Made the win32 version work again.  (Strangely, a misplaced comma had
2517    slipped into win32-process.c which prevented the runtime from being
2518    compiled correctly.)
2519    
2520    Also, included a minor addition to ml-build.bat analogous to what was
2521    done in blume-20040519-ml-build.
2522    
2523    ----------------------------------------------------------------------
2524    Name: Matthias Blume (blume (at) tti - c (dot) org)
2525    Date: 2004/05/19 22:10:00 CDT
2526    Tag: blume-20040519-ml-build
2527    Description:
2528    
2529    Arranged for ml-build to clean up after itself a little bit better.
2530    The script generates a temporary SML source file and compiles it using
2531    CM, so CM generates metadata (GUID, SKEL, objectfile) for it.  It now
2532    gets rid of those at the end, so they don't accumulate under .cm.
2533    
2534    This required a minor change to install.sh because the name of the
2535    metadata directory (default: .cm) is actually configurable at
2536    installation time.
2537    
2538    ----------------------------------------------------------------------
2539    Name: Matthias Blume (blume (at) tti - c (dot) org)
2540    Date: 2004/05/18 15:50:00 CDT
2541    Tag: blume-20040518-mkreader
2542    Description:
2543    
2544    Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
2545    implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
2546    
2547    ----------------------------------------------------------------------
2548    Name: Matthias Blume (blume (at) tti - c (dot) org)
2549    Date: 2004/05/11 14:35:00 CDT
2550    Tag: blume-20040511-win32sock
2551    Description:
2552    
2553    Added previously missing support for many socket-related functions
2554    under win32.  Thanks to David Hansel <hansel@reactive-systems.com>
2555    for the voluminous patch!
2556    
2557    (I have not tested this patch under win32 yet.)
2558    
2559    Here is David's e-mail:
2560    
2561    Hi,
2562    
2563    Attached to this email you find a diff against sml/nj 110.45
2564    that will enable socket support under Windows.
2565    
2566    To apply the patch (using unix or cygwin)
2567    1) gunzip runtime.diff.gz
2568    2) "cd" into "src/runtime" in the source tree of a fresh
2569       110.45 installation.
2570    3) patch -p 1 < [your/path/to]runtime.diff
2571    
2572    The code compiles fine but has NOT yet been extensively tested.
2573    I only ran a few tests for basic socket client functionality
2574    (which worked fine).  Especially the functions that use ioctl
2575    are not tested at all and might not work (see below).
2576    
2577    I implemented this since we want to move to a newer version of sml/nj
2578    but need socket support in order to use it.  This is the first time I
2579    even had a look at the sml/nj source,  so please review my changes
2580    before making this part of the distribution!  Here are a few issues
2581    that I think might be better for someone to solve who is more
2582    familiar with the sml/nj source (and socket programming):
2583    
2584    - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
2585      exception since I could not figure out what the windows equivalent
2586      of these functions is
2587    
2588    - In sockets-osdep.h there are a some #include statements that are
2589      only used in a few files that include sockets-osdep.h
2590    
2591    - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
2592      does not process its return value since I don't know how to
2593      report an error upwards.
2594    
2595    - It would probably be good to have a call to WSACleanup() when
2596      the library is unloaded (if there is such a possibility).
2597      Otherwise I think Windows will take care of this automatically
2598      when the process finishes.
2599    
2600    - I used ioctlsocket() as a replacement for ioctl() but I have
2601      no idea if that is actually the proper replacement on Windows.
2602    
2603    - All these issues are marked in the code by "FIXME" comments.
2604    
2605    We use sml/nj extensively in our products and are quite happy
2606    with it.  I hope this contribution will help you.
2607    
2608    Keep up the good work!
2609    
2610    David
2611    
2612    ----------------------------------------------------------------------
2613    Name: Matthias Blume (blume (at) tti - c (dot) org)
2614    Date: 2004/05/11 14:20:00 CDT
2615    Tag: blume-20040511-installml
2616    Description:
2617    
2618    Fixed two bugs in installml script.  (Thanks to Vesa A. Norrman for
2619    the patch.)
2620    
2621    ----------------------------------------------------------------------
2622    Name: Matthias Blume (blume (at) tti - c (dot) org)
2623    Date: 2004/05/11 14:05:00 CDT
2624    Tag: blume-20040511-nlffi-netbsd
2625    Description:
2626    
2627    Added support for nlffi under netbsd.  (Thanks to Vesa A. Norrman for
2628    the patch.)
2629    
2630    ----------------------------------------------------------------------
2631    Name: Matthias Blume (blume (at) tti - c (dot) org)
2632    Date: 2004/05/11 12:05:00 CDT
2633    Tag: blume-20040511-exports
2634    Description:
2635    
2636    As per request by Adam Chlipala <adam@hcoop.net>, extended various
2637    export lists in compiler-related .cm-files.
2638    
2639    ----------------------------------------------------------------------
2640    Name: Matthias Blume (blume (at) tti - c (dot) org)
2641    Date: 2004/05/11 11:35:00 CDT
2642    Tag: blume-20040511-allsource
2643    Description:
2644    
2645    The installer now honors the "src-smlnj" target again, although its meaning
2646    has changed from "all sources required for the compiler" to "all sources
2647    the installer knows about".  In other words, if you enable "src-smlnj"
2648    in the "targets" file, then the installer will pull in sources for
2649    everything.  (Notice that this refers to source code only.  Compiled
2650    code is still only installed for modules that were requested explicitly
2651    or which are required for other modules that were requested explicitly.)
2652    
2653    ----------------------------------------------------------------------
2654    Name: Matthias Blume (blume (at) tti - c (dot) org)
2655    Date: 2004/04/23 17:40:00 CDT
2656    Tag: blume-20040423-ieee-scan
2657    Description:
2658    
2659    Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
2660    in the exponent calculation we get INF or ZERO (depending on the mantissa
2661    and the sign of the exponent).
2662    
2663    ----------------------------------------------------------------------
2664    Name: Matthias Blume (blume (at) tti - c (dot) org)
2665    Date: 2004/04/23 10:40:00 CDT
2666    Tag: blume-20040423-ml-build
2667    Description:
2668    
2669    The ml-build script now terminates with a non-0 status when something
2670    goes wrong.
2671    
2672    ----------------------------------------------------------------------
2673    Name: Matthias Blume (blume (at) tti - c (dot) org)
2674    Date: 2004/04/22 16:35:00 CDT
2675    Tag: blume-20040422-Option
2676    Description:
2677    
2678    Made exception Option to be the same as exception Option.Option
2679    (as it should be).
2680    
2681    ----------------------------------------------------------------------
2682    Name: Allen Leung (leunga (at) reservoir (dot) com)
2683    Date: 2004/03/19 14:40:00 EST
2684    Tag: leunga-20040319-cygwin-nlffi
2685    Description:
2686    
2687    Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
2688    of SML/NJ.  The problem is that
2689    
2690       lib = dlopen(NULL, ...)
2691       f   = dlsym(lib, "malloc");
2692    
2693    does not work on Windows unless we explicitly export symbols
2694    such as 'malloc' during linking.  We fixed this by explicitly
2695    exporting the required symbols with the magic gcc incantation:
2696    
2697        -Wl,--export-all cygwin.def
2698    
2699    where cygwin.def is a file containing all the symbols that
2700    we wish to export.
2701    
2702    I suspect this is a Windows problem and we'll have to
2703    do the same (somehow with windows compilers) when
2704    we build the native win32 version with the system
2705    calls LoadLibrary/GetProcAddress.
2706    
2707    ----------------------------------------------------------------------
2708    Name: Matthias Blume (blume (at) tti - c (dot) org)
2709    Date: 2004/03/04 16:35:00 CST
2710    Tag: blume-20040304-intinf-fmt
2711    Description:
2712    
2713    Fixed problem with IntInf.fmt (sign would show up on the right instead
2714    of on the left for BIN, OCT, and HEX).
2715    
2716    ----------------------------------------------------------------------
2717    Name: Matthias Blume (blume (at) tti - c (dot) org)
2718    Date: 2004/03/04 11:25:00 CST
2719    Tag: blume-20040304-symlinks
2720    Description:
2721    
2722    Fixed problem with installer script (unix only) where bin/ml-yacc and
2723    friends pointed (via symlinks) to absolute locations instead of just
2724    .run-sml.  This was reported by Vesa A Norrman.
2725    
2726    ----------------------------------------------------------------------
2727    Name: Matthias Blume (blume (at) tti - c (dot) org)
2728    Date: 2004/02/13 14:50:00 CST
2729    Tag: Release_110_45
2730    Description:
2731    
2732    New working version (110.45). New bootfiles.
2733    
2734    ----------------------------------------------------------------------
2735    Name: Matthias Blume (blume (at) tti - c (dot) org)
2736    Date: 2004/01/26 15:15:15 CST
2737    Tag: blume-20040126-toplevel
2738    Description:
2739    
2740    Improved handling of exceptions at the interactive toplevel.
2741    
2742    ----------------------------------------------------------------------
2743    Name: Matthias Blume (blume (at) tti - c (dot) org)
2744    Date: 2004/01/26 11:25:00
2745    Tag: blume-20040126-app
2746    Description:
2747    
2748    Type of top-level "app" corrected.
2749    Added code for setting vp_limitPtrMask to Win32-specific runtime.
2750    
2751    ----------------------------------------------------------------------
2752    Name: Matthias Blume (blume (at) tti - c (dot) org)
2753    Date: 2003/11/18 17:10 CST
2754    Tag: blume-20031118-basis-fiddle
2755    Description:
2756    
2757    - changed Timer interface to what might become the spec
2758    - POSIX_FLAGS -> BIT_FLAGS according to spec
2759    - some other minor discrepancies wrt. spec eliminated
2760    
2761    ----------------------------------------------------------------------
2762    Name: Matthias Blume (blume (at) tti - c (dot) org)
2763    Date: 2003/11/06 12:00:00 CST
2764    Tag: Release_110_44
2765    Description:
2766    
2767    New working version (110.44). New bootfiles.
2768    
2769    ----------------------------------------------------------------------
2770    Name: Matthias Blume (blume (at) tti - c (dot) org)
2771    Date: 2003/11/04 11:50:00 CST
2772    Tag: blume-20031104-move-libraries
2773    Description:
2774    
2775    Eliminated the "dont_move_libraries" directive in config/targets.
2776    (The mechanism was broken and could not be fixed easily.  Moreover,
2777    there does not seem to be any reason not to move all libraries into
2778    lib during installation.  I originally implemented this directive as a
2779    backward-compatibility feature when I first introduced the new CM.
2780    Now that things have been stable for a long time and going back to the
2781    old CM is not an option, there is no reason to keep it around.)
2782    
2783    ----------------------------------------------------------------------
2784    Name: Matthias Blume (blume (at) tti - c (dot) org)
2785    Date: 2003/11/03 16:00:00 CST
2786    Tag: blume-20031103-installdir
2787    Description:
2788    
2789    Made installer honor INSTALLDIR variable again.  (Thanks to Chris
2790    Richards for pointing out the problem and providing the solution.)
2791    
2792    ----------------------------------------------------------------------
2793    Name: Matthias Blume (blume (at) tti - c (dot) org)
2794    Date: 2003/10/01 17:05:00 CDT
2795    Tag: blume-20031001-lal-mlrisc
2796    Description:
2797    
2798    MLRISC bug fix from Lal.
2799    
2800    ----------------------------------------------------------------------
2801    Name: Matthias Blume (blume (at) tti - c (dot) org)
2802    Date: 2003/09/30 16:10:00 CDT
2803    Tag: blume-20030930-primio-bat
2804    Description:
2805    
2806    1. Added openVector, nullRd, and nullWr to PRIM_IO.
2807    2. Improved .bat files (for Win32 port) to make things work under Win95.
2808       (thanks to Aaron S. Hawley for this one)
2809    
2810    ----------------------------------------------------------------------
2811    Name: Matthias Blume (blume (at) tti - c (dot) org)
2812    Date: 2003/09/26 16:05:00 CDT
2813    Tag: blume-20030926-wrappriv
2814    Description:
2815    
2816    Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
2817    
2818    ----------------------------------------------------------------------
2819    Name: Matthias Blume (blume (at) tti - c (dot) org)
2820    Date: 2003/09/26 15:00:00 CDT
2821    Tag: blume-20030926-110_43_3
2822    Description:
2823    
2824    - additional cleanup
2825    - version number bump, NEW BOOTFILES
2826    
2827    ----------------------------------------------------------------------
2828    Name: Matthias Blume (blume (at) tti - c (dot) org)
2829    Date: 2003/09/26 12:00:00 CDT
2830    Tag: blume-20030926-ppautoload
2831    Description:
2832    
2833    I modified the read-eval-print loop so that the autoloader gets
2834    invoked whenever the prettyprinter tries to look up a symbol that
2835    is not currently defined in the toplevel environment but which
2836    appears in CM's autoload registry.  As a result, we see far fewer of
2837    those ?.Foo.Bar.xxx names in the prettyprinter's output.
2838    
2839    In addition to this I tried to clean up some pieces of the Basis
2840    implementation (e.g., Socket, Word8Array) in order to prevent other
2841    instances of these ?.Foo.Bar.xxx names from being printed.
2842    
2843    The mechanism that picks names for types still needs some work, though.
2844    (Right now it seems that if there is a type A.t which is defined to
2845    be B.u, but B is unavailable at toplevel, then A.t gets printed as
2846    "?.B.u" although the perhaps more sensible solution would be to use
2847    "A.t" in this case.  In other words, the prettyprinter should follow
2848    a chain of DEFtycs not farther than there are corresponding toplevel
2849    names in the current environment.)
2850    
2851    ----------------------------------------------------------------------
2852    Name: Matthias Blume (blume (at) tti - c (dot) org)
2853    Date: 2003/09/24 16:31:00 CDT
2854    Tag: blume-20030924-installer
2855    Description:
2856    
2857    Another installer tweak:  All the ML code for the installer is now
2858    compiled during CMB.make and put into a little library called
2859    $smlnj/installer.cm.  The installation then simply invokes
2860    
2861       sml -m $smlnj/installer.cm
2862    
2863    and everything happens automagically.
2864    
2865    Win32:  ML code senses value of environment variable SMLNJ_HOME.
2866    Unix:   ML code senses values of environment variables ROOT, CONFIGDIR,
2867            and BINDIR.
2868    
2869    The new scheme guarantees that the ML code responsible for the installation
2870    is in sync with the APIs of the main system.  Also, the installer is
2871    somewhat faster because the installer script is precompiled.
2872    
2873    ----------------------------------------------------------------------
2874    Name: Matthias Blume (blume (at) tti - c (dot) org)
2875    Date: 2003/09/24 15:35:00 CDT
2876    Tag: blume-20030924-synsock
2877    Description:
2878    
2879    Added a signature SYNCHRONOUS_SOCKET to basis.cm.  This is like SOCKET
2880    but excludes all non-blocking operations.  Defined SOCKET (in Basis)
2881    and CML_SOCKET in terms of SYNCHRONOUS_SOCKET.  Removed superfluous
2882    implementations of non-blocking operations from CML's Socket
2883    structure.
2884    
2885    ----------------------------------------------------------------------
2886    Name: Matthias Blume (blume (at) tti - c (dot) org)
2887    Date: 2003/09/24 15:10:05 CDT
2888    Tag: blume-20030924-sockets
2889    Description:
2890    
2891    1. Fixed SOCKET API and implementation to match Basis spec.
2892       This required changing the internal representation of sockets to one
2893       that remembers (for each socket file descriptor) whether it is currently
2894       blocking or non-blocking.  This state is maintained lazily (i.e., a system
2895       call is made only if the state actually needs to change).
2896    
2897    2. OS-specific details of sockets were moved into separate files, thus
2898       making it possible to unify the bulk of the socket implementations
2899       between Unix and Win32.
2900    
2901    3. CML's socket API changed accordingly.
2902       (Note that we need to remove non-blocking functions from this API
2903       since they are redundant in the case of CML!)
2904    
2905    4. CML's socket implementation now makes use of non-blocking functions
2906       provided by Basis, thus removing all OS-dependent code from this part
2907       of CML.
2908    
2909    5. Changed Real64.precision from 52 to 53.  Minor cleanup in Real64 code.
2910    
2911    ----------------------------------------------------------------------
2912    Name: Matthias Blume (blume (at) tti - c (dot) org)
2913    Date: 2003/09/22 12:10:00 CDT
2914    Tag: blume-20030922-110_43_2
2915    Description:
2916    
2917    Made a new interim version and bootfiles for developer's bootstrapping
2918    convenience.
2919    
2920       110.43.2 -- NEW BOOTFILES
2921    
2922    ----------------------------------------------------------------------
2923    Name: Matthias Blume (blume (at) tti - c (dot) org)
2924    Date: 2003/09/19 15:55:00 CDT
2925    Tag: blume-20030919-cmdir
2926    Description:
2927    
2928    1. new-install.sh -> install.sh
2929    2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
2930    3. tweaked installer so that another name instead of .cm can be chosen
2931       at install time (by setting the CM_DIR_ARC environment variable
2932       during installation); once installation is complete, the name is
2933       fixed
2934    
2935    ----------------------------------------------------------------------
2936    Name: Matthias Blume (blume (at) tti - c (dot) org)
2937    Date: 2003/09/18 16:00:00 CDT
2938    Tag: blume-20030918-110_43_1
2939    Description:
2940    
2941    Made a new interim version and bootfiles for developer's bootstrapping
2942    convenience.
2943    
2944       110.43.1 -- NEW BOOTFILES
2945    
2946    ----------------------------------------------------------------------
2947    Name: Matthias Blume (blume (at) tti - c (dot) org)
2948    Date: 2003/09/18 15:20:00 CDT
2949    Tag: blume-20030918-misc
2950    Description:
2951    
2952    1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
2953       this seems to be controversial at the moment) and used those in
2954       Posix.ProcEnv.times.
2955    
2956    2. Added Time.{from,to}Nanoseconds to Time.
2957    
2958    3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
2959       For example, fromLargeInt never needs to look at more than 3 "big
2960       digits" to get its 53 bits of precision.
2961    
2962    ----------------------------------------------------------------------
2963    Name: Matthias Blume (blume (at) tti - c (dot) org)
2964    Date: 2003/09/17 16:30:00 CDT
2965    Tag: blume-20030917-real32-slices
2966    Description:
2967    
2968    Added an entry to the primitive environment
2969    (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
2970    added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
2971    
2972    Removed some of the "magic" constants in real64.sml and replaced them
2973    with code that generates these values from their corresponding
2974    integer counterparts.
2975    
2976    Made all(?) the slice-related changes to the Basis and made everything
2977    compile again...
2978    
2979    ----------------------------------------------------------------------
2980    Name: Matthias Blume (blume (at) tti - c (dot) org)
2981    Date: 2003/09/15 17:45:00 CDT
2982    Tag: blume-20030915-rbase
2983    Description:
2984    
2985    Fixed bug in Real.fromLargeInt.
2986    
2987    ----------------------------------------------------------------------
2988    Name: Matthias Blume (blume (at) tti - c (dot) org)
2989    Date: 2003/09/13 18:11:00 CDT
2990    Tag: blume-20030913-libinstall
2991    Description:
2992    
2993    Minor bugfix in config/libinstall (set anchor with path to
2994    standalone tool after installing it, otherwise libraries that
2995    need ml-lex or ml-yacc won't compile the first time the installer
2996    runs).
2997    
2998    ----------------------------------------------------------------------
2999    Name: Matthias Blume (blume (at) tti - c (dot) org)
3000    Date: 2003/09/12 11:45:00 CDT
3001    Tag: blume-20030912-various
3002    Description:
3003    
3004     - fixed bug in Real.toLargeInt
3005     - fixed bug in Posix.ProcEnv.times
3006     - changed inputLine functions to return an option
3007     - minor installer improvements / bugfixes
3008     - changed default @SMLalloc parameter for x86/celeron to 64k
3009    
3010    ----------------------------------------------------------------------
3011    Name: Matthias Blume (blume (at) tti - c (dot) org)
3012    Date: 2003/09/09 22:00:00 CDT
3013    Tag: Release_110_43
3014    Description:
3015    
3016        New working release 110.43.  New bootfiles.
3017    
3018    ----------------------------------------------------------------------
3019    Name: Matthias Blume (blume (at) tti - c (dot) org)
3020    Date: 2003/09/09 19:20:00 CDT
3021    Tag: blume-20030909-installer
3022    Description:
3023    
3024    Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
3025    Modified config/install.bat to take advantage of it.  Also modified
3026    config/install.sh (and called it config/new-install.sh) to take advantage
3027    of it on Unix systems.  (The SML code is (supposed to be) platform-
3028    independent.)
3029    
3030    The installer can now install everything under Win32
3031    as well as under *nix as long as it compiles.
3032    
3033    Other changes:
3034    
3035      - made CML compile again under Win32
3036      - made eXene compile under Win32 (by providing a fake structure UnixSock
3037        and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
3038      - fixed a bug in nowhere: it assumed that type OS.Process.status is the
3039        same as type int;  under Win32 it isn't
3040      - fixed some slice-related problems in the win32-specific parts of CML
3041      - added a functor argument "sameVol" to os-path-fn.sml in the Basis
3042        (under Win32, the volume name is case-insensitive, and the
3043        OS.Path code compares volume names for equality)
3044    
3045    ----------------------------------------------------------------------
3046    Name: Matthias Blume (blume (at) tti - c (dot) org)
3047    Date: 2003/09/08 11:55:00 CDT
3048    Tag: blume-20030908-fullpath
3049    Description:
3050    
3051    Made Win32 version of OS.FileSys.fullPath return current directory
3052    when given an empty string.  This is what the spec says, and incidentally,
3053    CM depends on it.  (CM otherwise goes into an infinite loop in certain
3054    cases when presented with the name of a non-existing .cm file.)
3055    
3056    ----------------------------------------------------------------------
3057    Name: Matthias Blume (blume (at) tti - c (dot) org)
3058    Date: 2003/09/04 16:30:00 CDT
3059    Tag: blume-20030905-slices-etc
3060    Description:
3061    
3062      1. Changed interface to vectors and arrays in Basis to match
3063         (draft) Basis spec.
3064      2. Added signatures and implementations of slices according to
3065         Basis spec.
3066      3. Edited source code throughout the system to make it compile again
3067         under 1. and 2.  (In some cases code had to be added to have it
3068         match the new signatures.)
3069      4. MLRISC should be backward-compatible: the copies of the originals
3070         of files that needed to change under 3. were retained, the .cm files
3071         check the compiler version number and use old versions when
3072         appropriate.
3073      5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
3074         dirstream -> string option (in accordance with Basis spec).
3075      6. When generating code that counts lines, ml-lex used function
3076         CharVector.foldli, taking advantage of its old interface.
3077         This has been replaced with the corresponding code from
3078         CharVectorSlice.  (html-lex must be re-lexed!)
3079      7. BitArray in smlnj-lib/Util has been extended/modified to match the
3080         new MONO_ARRAY signature.  (Do we need BitArraySlice?)
3081      8. Removed temporary additions (fromInternal, toInternal) from the
3082         (now obsolete) IntInf in smlnj-lib/Util.
3083      9. Cleaned up structure Byte.
3084     10. Added localOffset, scan, and fromString to Date (according to spec).
3085         Cleaned/corrected implementation of Date.
3086         (Still need to check for correctness; implement better canonicalizeDate.)
3087     11. Added "scan" to signature IEEE_REAL.
3088     12. Some improvements to IntInf [in particular: efficiency-hack for
3089         mod and rem when second operand is 2 (for parity checks).]
3090     13. Changed representation of type Time.time, using a single IntInf.int
3091         value counting microseconds.  This considerably simplified the
3092         implementation of structure Time.  We now support negative time
3093         values; scan and fromString handle signs.
3094     14. Functor PrimIO now takes two additional arguments (VectorSlice and
3095         ArraySlice).
3096    
3097    ----------------------------------------------------------------------
3098    Name: Matthias Blume (blume (at) tti - c (dot) org)
3099    Date: 2003/08/28 17:00:00 CDT
3100    Tag: blume-20030828-intinf
3101    Description:
3102    
3103    This is a major update which comes with a version number bump
3104    (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
3105    and an implementation of IntInf in the Basis.
3106    
3107    There are a fairly large number of related changes and updates throughout
3108    the system:
3109    
3110    Basis:
3111            - Implemented IntInf.
3112            - Made LargeInt a projection of IntInf (by filtering through INTEGER).
3113            - Added some missing Real64 operations, most notably Real.toLargeInt.
3114            - Added FixedInt as a synonym for Int32.
3115    
3116    compiler:
3117            * Added support for a built-in intinf type.
3118              - literals
3119              - pattern matching
3120              - conversion shortcuts (Int32.fromLarge o Int.toLarge etc.)
3121              - overloading on literals and operations
3122    
3123            This required adding a primitive type intinf, some additional
3124            primops, and implementations for several non-trivial intinf
3125            operations in Core.  (The intinf type is completely abstract
3126            to the compiler; all operations get delegated back to the Core.)
3127    
3128            * Intinf equality is handled by polyequal.  However, the compiler
3129            does not print its usual warning in this case (since polyequal
3130            is the right thing to do there).
3131    
3132            * Improved the organization of structure InlineT.
3133    
3134            * A word about conversion primops:
3135            If conversions involving intinf do not cancel out during
3136            CPS contract, then the compiler must insert calls to Core functions.
3137            Since all core access must be resolved already during the FLINT
3138            translate phase, it would be too late a the time of CPS contract
3139            to add new Core calls.  For this reason, conversion primops
3140            for intinf carry two arguments:  1. the numeric argument that
3141            they are supposed to convert, and 2. the Core function that
3142            can help with this conversion if necessary.  If CPS contract
3143            eliminates a primop, then the associated Core function becomes
3144            dead and goes away.  Intinf conversion primops that do not get
3145            eliminated by CPS contract get rewritten into calls of their
3146            core functions by a separate, new phase.
3147    
3148    interactive system:
3149            - Control.Print.intinfDepth controls max length of intinf constants
3150            being printed. (Analogous to Control.Print.stringDepth.)
3151            - Cleanup in printutil and pputil: got rid of unused stuff and
3152            duplicates; replaced some of the code with code that makes better
3153            use of library functionality.
3154    
3155    CM:
3156            Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
3157            are no longer silent.
3158    
3159    CKIT:
3160            Fixed mismatched uses of Int32 and LargeInt.  I always decided
3161            in favor of LargeInt -- which is now the same as IntInf.
3162            CKIT-knowledgable people should check whether this is what's
3163            intended and otherwise change things back to using Int32 or
3164            FixedInt.
3165    
3166    Throughout the code:
3167            Started using IntInf.int literals and built-in operations
3168            (e.g., comparison with 0) where this seems appropriate.
3169    
3170    
3171    ----------------------------------------------------------------------
3172    Name: Dave MacQueen (dbm@cs.uchicago.edu)
3173    Date: 2003/08/13 11:36:00 CDT
3174    Tag: dbm-20030813-mcz-merge1
3175    Description:
3176    
3177    Merging changes from the mcz-branch development branch into trunk.
3178    These changes involve replacement of the emulated old prettyprinter
3179    interface with direct use of the SML/NJ Lib PP library, and fixing
3180    of a couple of bugs (895, 1186) relating to error messages.  A new
3181    prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
3182    has been added.
3183    
3184    ----------------------------------------------------------------------
3185    Name: Matthias Blume (blume (at) tti - c (dot) org)
3186    Date: 2003/08/11 15:45:00 CDT
3187    Tag: blume-20030811-windows
3188    Description:
3189    
3190    Version number bumped to 110.42.9.  NEW BOOTFILES!!!
3191    
3192        http://smlnj.cs.uchicago.edu/dist/working/110.42.9/
3193    
3194    This patch restores SML/NJ's ability to run under win32.  There are a
3195    number of changes, including fixes for several bugs that had gone
3196    unnoticed until now:
3197    
3198      - uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
3199        trying to run the win32 version from within cygwin.)
3200    
3201      - There are a number of simple .bat scripts that substitute for their
3202        corresponding Unix shell-scripts.  (See below.)
3203    
3204      - The internals of ml-build have been modified slightly.  The main
3205        difference is that instead of calling ".link-sml" (or link-sml.bat)
3206        using OS.Process.system, the ML process delegates this task back
3207        to the script.  Otherwise problems arise in mixed environments such
3208        as Cygwin where scripts look and work like Unix scripts, but
3209        where OS.Process.system cannot run them.
3210    
3211      - In CM, the srcpath pickler used native pathname syntax -- which
3212        is incorrect in the case of cross-compilation.  The new pickle format
3213        is independent of platform-specific naming conventions.
3214    
3215      - Path configuration files (such as lib/pathconfig) can now choose
3216        between native and standard syntax.  Placing a line of the form
3217    
3218            standard!
3219    
3220        into the file causes all subsequent paths to be interpreted using
3221        CM standard pathname syntax (= Unix conventions); a line
3222    
3223            native!
3224    
3225        switches back to native style.  This was needed so that
3226        path config files can be written portably, see src/system/pathconfig.
3227    
3228      - Runtime system:
3229    
3230          - win32-filesys.c:  get_file_time and set_file_time now
3231            access modification time, not creation time.
3232    
3233          - I/O code made aware of new array representation.
3234    
3235          - Bug fixes in X86.prim.masm.
3236    
3237       - src/system/makeml made aware of win32. (For use under cygwin
3238            and other Unix-environments for windows.)
3239    
3240       - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
3241         which caused BinIO.inputAll to fail consistently.
3242    
3243    .bat scripts:
3244    
3245       Windows .bat scripts assume that SMLNJ_HOME is defined.
3246    
3247       - sml.bat, ml-yacc.bat, ml-lex.bat:  Driver scripts for standalone
3248         applications (sml, ml-yacc, ml-lex).
3249       - ml-build.bat: analogous to ml-build.
3250       - config\install.bat:  Analogous to config/install.sh.  This requires
3251         that SMLNJ_HOME is set and that Microsoft Visual C is ready to use.
3252         (nmake etc. must be on the path, and vcvars32 must have been run.)
3253         Moreover, sources for ml-lex and ml-yacc need to exist under src,
3254         and the bootfile hierarchy must have been unpacked under
3255         sml.boot.x86-win32.
3256         The script is very primitive and does a poor job at error checking.
3257         It only installs the base system, ml-lex, and ml-yacc.  No other
3258         libraries are being installed (i.e., you get only those that
3259         are part of the compiler.)
3260       - link-sml.bat:  analogous to .link-sml, but not currently used
3261    
3262    Unrelated bug fixes:
3263    
3264      - ml-nlffigen now exports structures ST_* corresponding to incomplete
3265        types.
3266      - Added getDevice to PP/src/pp-debug-fn.sml.  (Would not compile
3267        otherwise.)
3268    
3269    ----------------------------------------------------------------------
3270    Name: Dave MacQueen (macqueen@cs.uchicago.edu)
3271    Date: 2003/06/17
3272    Tag: macqueen-20030617-bug895
3273    Description:
3274    
3275    Modified compiler/Elaborator/print/pptype.sml to fix bug 895.
3276    Tag will be used for new development branch (mcz-branch) for
3277    use by MacQueen, (Lucasz) Zairek, and (George) Cao at uchicago.
3278    
3279    ----------------------------------------------------------------------
3280    Name: Matthias Blume (blume (at) tti - c (dot) org)
3281    Date: 2003/05/27 16:55:00 CDT
3282    Tag: blume-20030527-polyeq
3283    Description:
3284    
3285    Tried to eliminated most cases of polymorphic equality.
3286    
3287    ----------------------------------------------------------------------
3288    Name: Matthias Blume (blume (at) tti - c (dot) org)
3289    Date: 2003/05/21 17:45:00 CDT
3290    Tag: blume-20030517-complete
3291    Description:
3292    
3293    Two changes:
3294    
3295      1. Added a flag for controlling whether non-exhaustive bindings will
3296         be treated as errors (default is false).
3297      2. Cleaned up the *entire* source tree so that CMB.make goes through
3298         without a single non-exhaustive match- or bind warning.
3299    
3300    ----------------------------------------------------------------------
3301    Name: Matthias Blume (blume (at) tti - c (dot) org)
3302    Date: 2003/05/17 10:20:00 CDT
3303    Tag: blume-20030517-absyn
3304    Description:
3305    
3306    1. Added cases for IF, WHILE, ANDALSO, and ORELSE to Absyn.
3307    
3308       This mainly affects the quality of error messages.  However, some
3309       of the code is now more straightforward than before. (Treatment of
3310       the above four constructs in translate.sml is much simpler than
3311       the "macro-expansion" that was going on before.  Plus, the mach-
3312       compiler no longer gets invoked just to be able to compile an
3313       if-expression.)
3314    
3315    2. The ErrorMsg.Error exception is now caught and absorbed by the
3316       interactive loop.
3317    
3318    ----------------------------------------------------------------------
3319