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

SCM Repository

[smlnj] Annotation of /doc/trunk/src/changelog/HISTORY.txt
ViewVC logotype

Annotation of /doc/trunk/src/changelog/HISTORY.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4141 - (view) (download)

1 : jhr 3992 Standard ML of New Jersey Change Log
2 :     ====================================
3 :     The Fellowship of SML/NJ
4 : jhr 3998 {version}, {releasedate}:
5 : jhr 3992
6 : jhr 4002 This file documents changes to the Standard ML of New Jersey system since
7 :     March of 2000 (around Version 110.26). The change log primarily covers
8 :     the compiler, the compilation manager (*CM*), the *MLRISC* library, and
9 :     the runtime system. There are occasional entries about other components
10 :     (_e.g._, the *SML/NJ Library* and *ML-LPT*), but these components have
11 :     their own change logs that should be consulted.
12 :    
13 : jhr 3992 //////////////////////////////////////////////////////////////////////
14 :     This change log is in ASCII doc format. An HTML version of the
15 :     change log can be generated using the command
16 :    
17 : jhr 4049 make html
18 : jhr 3992
19 :     An entry should be made for _every_ commit to the repository.
20 :     The entries in this file will be used when creating the README
21 :     for new versions, so keep that in mind when writing the
22 :     description.
23 :    
24 :     The structure of the HISTORY is that there is a section for
25 :     each release, which starts with a section header of the form
26 :    
27 :     == Version xxx.yy; yyyy/mm/dd
28 :    
29 :     The content of a section is a list of entries. The form of an
30 :     entry should be:
31 :    
32 :     [yyy/mm/dd]::
33 :     +
34 : jhr 3995 Description ...
35 : jhr 3992 +
36 :     owner:[Your Name,URL]
37 :    
38 : jhr 3995 Note that we put "+" at the beginning of blank lines. Entries are items
39 :     in a labeled list and the "+" character keeps eveything in the same list
40 :     element.
41 :    
42 : jhr 3992 Here is a quick asciidoc cheat sheet:
43 :    
44 :     + new paragraph
45 :     *foo* bold "foo"
46 :     _foo_ italic "foo"
47 :     +foo+ teletype "foo"
48 :     http:/some.website.org/path[] URL
49 :     bugref:[123] displays as "#123" with
50 :     a link to the bug report.
51 : jhr 4134 reqref:[123] displays as "#123" with a
52 :     link to the feature request.
53 : jhr 3992 owner:[name,url] displays name with URL link.
54 :    
55 : jhr 3995 Sub lists should be bracketed with lines containing just "--".
56 : jhr 3992 Bulleted list items start with a single dash or one to five
57 :     asterisks followed by some white space then some text. Numberd
58 :     list items begin one to five period characters, followed by
59 :     some white space then the item text.
60 :    
61 : jhr 3995 Literal (verbatim) blocks are delimited by
62 :     .....................
63 :     stuff
64 :     .....................
65 :    
66 : jhr 3992 Superscripts and subscripts are denoted by putting ^ (or ~)
67 :     around the text to superscripted (superscripted). For example,
68 :     the number 256 can be written as 2^8^.
69 :    
70 :     SML source code displays can be included as source blocks:
71 :    
72 :     [source,sml]
73 :     ------------
74 :     structure Foo = struct val x = 1 end
75 :     ------------
76 :    
77 :     Source code will be stylized using the pygmentize (http://pygments.org)
78 :     tool.
79 :    
80 :     More information about asciidoc can be found at http://asciidoc.org.
81 :    
82 : jhr 4002 NOTE: the original HISTORY file was converted to ASCIIDOC using a Perl
83 :     script. This script gets the basic structure for entries correct,
84 :     but there still needs to be a fair bit of editing to add ASCIIDOC
85 :     markup, fix indentation issues, nested lists, etc. Working from most
86 :     recent to oldest, I've edited back to release 110.46 (2004/06/17).
87 :    
88 : jhr 3992 //////////////////////////////////////////////////////////////////////
89 :    
90 : jhr 4126 == Recent updates
91 : jhr 3992
92 : jhr 4126 //====================================================================
93 :     // == Version 110.79; 2015/10/01
94 :    
95 : jhr 4060 //--------------------------------------------------------------------
96 : jhr 4141 [2015/09/28]::
97 :     +
98 :     New implementation of +Date+ structure in the Basis, which fixes bugs
99 :     bugref:[138] (Incorrect behavior for Date.fromTimeLocal) and
100 :     bugref:[139] (Date.date is broken). Note that some more thought should
101 :     be given to the correct semantics of +Date.date+ when dealing with
102 :     offsets. For example, should an offset of +23 hours produce the same
103 :     date as an offset of -1 hours? Currently our implementation produces
104 :     different results (by a day) for these two situations.
105 :     +
106 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
107 :    
108 :     //--------------------------------------------------------------------
109 : jhr 4126 [2015/09/25]::
110 :     +
111 : jhr 4134 Implemented the changes for
112 :     https://github.com/SMLFamily/BasisLibrary/wiki/2015-003-Additional-operations-on-sequences[
113 :     Basis Library Proposal 2015-003]. This propsal added operations to
114 :     the following signatures:
115 :     +
116 :     [source,sml]
117 :     ------------
118 :     signature ARRAY
119 :     signature LIST
120 :     signature LIST_PAIR
121 :     signature MONO_ARRAY
122 :     signature MONO_VECTOR
123 :     signature OPTION
124 :     signature STRING
125 :     signature TEXT
126 :     signature VECTOR
127 :     ------------
128 :     +
129 :     and the following structures:
130 :     +
131 :     [source,sml]
132 :     ------------
133 :     structure Array : ARRAY
134 :     structure CharArray : MONO_ARRAY
135 :     structure CharVector : MONO_VECTOR
136 :     structure List : LIST
137 :     structure ListPair : LIST_PAIR
138 :     structure Option : OPTION
139 :     structure Real64Array : MONO_ARRAY
140 :     structure Real64Vector : MONO_VECTOR
141 :     structure String : STRING
142 :     structure Text : TEXT
143 :     structure Vector : VECTOR
144 :     structure Word8Array : MONO_ARRAY
145 :     structure Word8Vector : MONO_VECTOR
146 :     ------------
147 :     +
148 :     While it is very unlikely that these changes will break existing code, there are
149 : jhr 4139 a a couple scenarios in which the code might break. Namely, when use of +open+
150 :     introduces conflicts and when user code implements one of the affected Basis Library
151 :     signatures. Both of these examples occurred in the *SML/NJ* source code; the former
152 :     in the *ml-yacc* sources and the latter in the *MLRISC* sources.
153 : jhr 4134 +
154 :     --------
155 :     $/basis.cm
156 :     --------
157 :     +
158 :     to
159 :     +
160 :     --------
161 :     $/basis-2004.cm
162 :     --------
163 :     +
164 :     in your CM files.
165 :     +
166 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
167 :    
168 :     //--------------------------------------------------------------------
169 :     [2015/09/25]::
170 :     +
171 :     Added the optional implementations of +PackReal64Big+ and +PackReal64Little+.
172 : jhr 4126 This addition addresses feature request reqref:[82]
173 :     (Implementations of +PACK_REAL+ missing). The implementation
174 :     uses the approach suggested by
175 :     https://github.com/msullivan/sml-util/blob/master/libs/pack-real.sml[Michael Sullivan].
176 :     +
177 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
178 :    
179 :     //--------------------------------------------------------------------
180 : jhr 4122 [2015/09/24]::
181 :     +
182 :     Fixed bug bugref:[45] (Compiler bug in specialize phase). This bug
183 :     was in +compiler/FLINT/opt/fcontract.sml+ and was the result of a bad
184 :     interaction between eta contraction and inlining. As part of the fix,
185 :     I cleaned up the code in this part of FLINT a bit.
186 :     +
187 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
188 :    
189 :     //--------------------------------------------------------------------
190 : jhr 4105 [2015/09/21]::
191 : jhr 4107 Improvements to the error messages produced by the *ml-ulex* lexer generator.
192 :     +
193 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
194 :    
195 :     //--------------------------------------------------------------------
196 :     [2015/09/21]::
197 : jhr 4105 Added +Ref+ structure and +REF+ signature to Basis implementation
198 :     (https://github.com/SMLFamily/BasisLibrary/wiki/2015-007-Addition-of-Ref-module[
199 :     Basis Library Proposal 2015-007]).
200 :     +
201 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
202 :    
203 :     //--------------------------------------------------------------------
204 :     [2015/09/21]::
205 :     Added +Fn+ structure and +FN+ signature to Basis implementation
206 :     (https://github.com/SMLFamily/BasisLibrary/wiki/2015-005-Addition-of-Fn-module[
207 :     Basis Library Proposal 2015-005]).
208 :     +
209 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
210 :    
211 :     //--------------------------------------------------------------------
212 : jhr 4097 [2015/08/22]::
213 :     +
214 : jhr 4105 Fixed bug bugref:[136] (Incorrect raising of exceptions in +Real.fmt+
215 :     and +Time.fmt+).
216 : jhr 4097 +
217 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
218 :    
219 :     //--------------------------------------------------------------------
220 : jhr 4105 [2015/08/14]::
221 :     +
222 :     Added +Either+ structure and +EITHER+ signature to Basis implementation
223 :     (https://github.com/SMLFamily/BasisLibrary/wiki/2015-002-Addition-of-Either-module[
224 :     Basis Library Proposal 2015-002]).
225 :     +
226 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
227 :    
228 :     //--------------------------------------------------------------------
229 : jhr 4086 [2015/07/23]::
230 :     +
231 : jhr 4098 Fixed bug bugref:[135] (Fails to build on Linux PowerPC).
232 : jhr 4086 +
233 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
234 :    
235 :     //--------------------------------------------------------------------
236 : jhr 4076 [2015/07/08]::
237 :     +
238 : jhr 4077 Added Linux 4.* kernels to the list of operating systems recognized
239 :     by the ++.arch-n-opsys++ script (fixes bug bugref:[134]).
240 : jhr 4076 +
241 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
242 :    
243 :     //--------------------------------------------------------------------
244 : jhr 4074 [2015/06/11]::
245 :     +
246 :     Added Mac OS X 10.11 (El Capitan) to the list of operating systems
247 :     recognized by the ++.arch-n-opsys++ script.
248 :     +
249 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
250 :    
251 :     //--------------------------------------------------------------------
252 : jhr 4060 [2015/05/27]::
253 :     +
254 : jhr 4105 Added support for *Successor ML* lexical extensions. These can be enabled
255 : jhr 4107 using the command-line option ++-Cparser.succ-ml=true++ or by the assignment
256 : jhr 4062 +
257 :     [source,sml]
258 :     ------------
259 :     Control.succML := true;
260 :     ------------
261 :     +
262 :     at the REPL. The extensions are as follows:
263 : jhr 4105 +
264 : jhr 4060 --
265 : jhr 4105 - Underscore ("++_++") as a separator in numeric literals; __e.g.__, ++123_456++,
266 :     ++0wxff_ff_ff_f3++, ++123_456.1++, ...
267 : jhr 4060
268 :     - end-of-line comments, which are denoted using ++(*)++. End-of-line comments
269 :     properly nest into conventional block comments. For example, the following
270 :     block comment is well formed:
271 :     +
272 :     [source,sml]
273 :     ------------
274 :     (*
275 :     fun f x = x (*) my identity function *)
276 :     *)
277 :     ------------
278 :     +
279 : jhr 4062 - binary literals for both integers and words; __e.g.__, ++0b0101_1110++, or
280 : jhr 4060 ++0wb1101++.
281 :     --
282 : jhr 4105 +
283 :     This change is the beginning of a program to add *Successor ML* feature to *SML/NJ*;
284 :     See https://github.com/SMLFamily/Proposed-Definition-of-Successor-ML[] for more
285 :     details.
286 :     +
287 : jhr 4060 owner:[John Reppy,http://cs.uchicago.edu/~jhr]
288 :    
289 : jhr 4002 //====================================================================
290 : jhr 4037 == Version 110.78; 2014/12/24
291 : jhr 4002
292 : jhr 3992 //--------------------------------------------------------------------
293 : dbm 4001 [2014/12/19]::
294 :     +
295 :     Major revision of the machinery for overloading resolution for both
296 :     operators (vars) and literals, now using a common mechanism. This fixes
297 :     bug bugref:[52] by improving the error message when an overloaded
298 : jhr 4049 operator is inconsistent with its context. Updated 23 files, including
299 : dbm 4001 major changes in +overload.sml+, +types.sml+, +unify.sml+, +elabcore.sml+,
300 :     +typesutil.sml+. The overload declaration is still used in
301 :     +pervasives.sml+, where the order of the specified instances of an
302 : jhr 4002 ordering determines the default interpretation (_i.e._, the first one).
303 : dbm 4001 +
304 :     The +SCHEME+ and +LITERAL+ forms of tyvars are replaced by a new
305 :     +OVLD+ form that tracks potential instantiations of the type of the
306 :     overloaded vars or literals.
307 :     +
308 :     owner:[David MacQueen,http://cs.uchicago.edu/~dbm]
309 :    
310 :     //--------------------------------------------------------------------
311 : jhr 4002 [2014/12/18]::
312 :     +
313 :     Moved +base/NOTES/HISTORY+ file to +doc/src/changelog/HISTORY.txt+
314 :     and converted it to http://asciidoc.org[ASCIIDOC] format. Have also
315 :     moved the +README+ files from +base/READMES+ to +doc/src/release-notes+.
316 :     These changes are part of a general effort to rationalize and improve
317 :     the documentation of the *SML/NJ* system.
318 :     +
319 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
320 :    
321 :     //--------------------------------------------------------------------
322 : jhr 3994 [2014/12/13]::
323 :     +
324 : jhr 4002 Preliminary cleanups before changes to overloading
325 :     +
326 : jhr 3994 Minor cleanup in +Elaborator/elaborate/elabcore+ (function +elabOVERLOADdec+)
327 :     and in +ElabData/types/typesutil.sml+ (function +matchScheme+). Preparing for
328 :     a new method of handling type checking of overloaded operators. [Note
329 :     that there is no reason for the options field of +OVLDvar+ to be a
330 :     reference -- it is never updated. Changing this requires corresponding
331 :     change in pickling.]
332 :     +
333 :     Also added an +etopdebugging+ flag (+ElabControl+) for debugging in
334 :     +elabtop.sml+. Modified ++elabcontrol.++{++sml++,++sig++} and
335 :     +elabtop.sml+. Also rearranged ast and absyn printing in +evalloop.sml+.
336 :     +
337 :     owner:[David MacQueen,http://cs.uchicago.edu/~dbm]
338 :    
339 :     //--------------------------------------------------------------------
340 : jhr 3992 [2014/10/23]::
341 :     +
342 :     Improved error messages in *ml-ulex* for unclosed strings. Also made
343 :     documentation improvements.
344 :     +
345 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
346 :    
347 :     //--------------------------------------------------------------------
348 :     [2014/10/11]::
349 :     +
350 :     Added +-D_FILE_OFFSET_BITS=64+ flag to +x86-linux+ makefile. This flag
351 :     is necessary to avoid spurious +EOVERFLOW+ errors on some versions of
352 :     Linux. The problem appears to be limited to large file systems that
353 :     have more than 2^32^ inodes.
354 :     +
355 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
356 :    
357 :     //--------------------------------------------------------------------
358 :     [2014/09/13]::
359 :     +
360 :     Added +%value+ directive to *ml-antlr*; this addition improves the
361 :     error repair choices by allowing non-nullary tokens to be inserted
362 :     when making repairs.
363 :     +
364 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
365 :    
366 :     //====================================================================
367 :     == Version 110.77; 2014/08/22
368 :    
369 :    
370 :     //--------------------------------------------------------------------
371 : jhr 4002 [2014/08/21]::
372 :     +
373 :     Created new +doc+ tree in *SML/NJ* repository. Currently this
374 :     tree just holds the sources for UNIX-style manual pages for
375 :     the command-line tools (fixing bug bugref:[35]). The documentation
376 :     is written using the http://asciidoc.org[ASCIIDOC] format. Use
377 :     the following *svn* command to checkout a copy of the documentation tree:
378 :     +
379 :     [source,sh]
380 :     -----------
381 :     svn co https://smlnj-gforge.cs.uchicago.edu/svn/smlnj/doc/trunk doc
382 :     -----------
383 :     +
384 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
385 :    
386 :     //--------------------------------------------------------------------
387 : jhr 3992 [2014/08/19]::
388 :     +
389 :     Compiling the runtime system on *cygwin* was failing because the file
390 :     +exceptions.h+ was missing. It appears to have been part of previous
391 :     versions, so a version has been incorporated verbatim in the
392 :     file +runtime/mach-base/cygwin-fault.c+ file (fixes bug bugref:[125]).
393 :     +
394 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
395 :    
396 :     //--------------------------------------------------------------------
397 :     [2014/08/19]::
398 :     +
399 : jhr 4002 Added the +actionToString'+ and +repairToString'+ functions
400 :     to the +AntlrRepair+ structure. These functions allow one to
401 : jhr 3992 specialize the printing of tokens based on whether they are
402 :     being added or deleted.
403 :     +
404 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
405 :    
406 :     //--------------------------------------------------------------------
407 :     [2014/08/17]::
408 :     +
409 :     Added patches to support +OpenBSD+ on +PowerPC+. The patches were
410 :     contributed by Jasper Lievisse Adriaanse (fixes bug bugref:[124]).
411 :     +
412 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
413 :    
414 :     //--------------------------------------------------------------------
415 :     [2014/08/17]::
416 :     +
417 :     Use +mkstemp+ to implement +OS.FileSys.tmpName()+ on systems that support
418 :     it (should be all modern versions of *Unix*). This change fixes bug bugref:[128].
419 :     (Thanks to Johannes 5 Joemann).
420 :     +
421 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
422 :    
423 :     //--------------------------------------------------------------------
424 :     [2014/08/17]::
425 :     +
426 :     Fixed a bug in +IntInf.~>>+, which did not handle negative arguments
427 :     correctly (bug bugref:[110]).
428 :     +
429 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
430 :    
431 :     //--------------------------------------------------------------------
432 :     [2014/08/14]::
433 :     +
434 :     Fixed a problem in the CPS contraction phase. An optimization that
435 :     eliminates construction of a record that already exists was not
436 :     checking that the existing record was the same record kind (bug bugref:[119]).
437 :     +
438 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
439 :    
440 :     //--------------------------------------------------------------------
441 :     [2014/07/28]::
442 :     +
443 :     Switch to using +MAP_ANONYMOUS+ to allocate memory on Linux systems.
444 :     This change avoids problems when +"/dev"+ does not support execute
445 :     permission (as seems to be the case with some versions of *Linux*
446 :     running on ChromeBooks; bug bugref:[120]).
447 :     +
448 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
449 :    
450 :     //--------------------------------------------------------------------
451 :     [2014/06/28]::
452 :     +
453 :     Fix for bug bugref:[127] (Crash on *Windows* with +OS.Process.system+).
454 :     +
455 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
456 :    
457 :     //--------------------------------------------------------------------
458 :     [2014/06/07]::
459 :     +
460 :     Fixed a long-standing bug in +Socket.recvVec+, which prevented the result
461 :     from being used in a string pattern match (thanks to Vesa Norrman
462 :     for the fix).
463 :     +
464 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
465 :    
466 :     //--------------------------------------------------------------------
467 :     [2014/05/01]::
468 :     +
469 :     Fixed minor issue in an error message; type variable name should be
470 :     printed with leading +'+.
471 :     +
472 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
473 :    
474 :     //--------------------------------------------------------------------
475 :     [2013/11/25]::
476 :     +
477 :     Added ++PackWord++{++16++,++32++}{++Big++,++Little++} structures
478 :     to the +Unsafe+ module. This change makes the +UNSAFE+ signature
479 :     closer to the http://mlton.org[*MLton*] version, although we
480 :     still need to add the +PackReal+ structures.
481 :     +
482 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
483 :    
484 :     //====================================================================
485 :     == Version 110.76; 2013/07/01
486 :    
487 :    
488 :     //--------------------------------------------------------------------
489 :     [2013/06/04]::
490 :     +
491 :     Fix bug bugref:[115] (+BinPrimIO+ writer method +getPos+ does not
492 :     work under CML). Just needed to port the position update from +mkReader+
493 :     code to the +mkWriter+ code.
494 :     +
495 :     owner:[Lars Bergstrom]
496 :    
497 :     //--------------------------------------------------------------------
498 :     [2013/06/04]::
499 :     +
500 :     Fix bug bugref:[111] (+Socket.acceptNB+ returns somewhat broken sockets).
501 :     The problem was that under Win32, sockets returned from +accept+ inherit
502 :     their parents' non-blocking status, whereas on *UNIX* they are always
503 :     blocking.
504 :     +
505 :     owner:[Lars Bergstrom]
506 :    
507 :     //--------------------------------------------------------------------
508 :     [2013/05/20]::
509 :     +
510 :     Fix bug bugref:[117] (+BinIO.openAppend+ raises +IO+ on non-existent file).
511 :     We were opening the file for append if it existed but not creating it
512 :     if it did not exist.
513 :     +
514 :     owner:[Lars Bergstrom]
515 :    
516 :     //--------------------------------------------------------------------
517 :     [2013/05/02]::
518 :     +
519 :     Fix bug bugref:[116] (+Socket.sameDesc+ raises +Match+ exception).
520 :     The problem is that on Windows the +iodesc+ datatype (defined in
521 :     +Basis/Implementation/Win32/pre-os.sml+) has both an +IODesc+ constructor
522 :     and a +SockDesc+ constructor. Updated the code in +Win32/os-io.sml+ to
523 :     handle the +SockDesc+ constructor.
524 :     +
525 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
526 :    
527 :     //--------------------------------------------------------------------
528 :     [2013/04/19]::
529 :     +
530 :     Fix bug bugref:[113] (Socket.select waits exactly twice the indicated timeout)
531 :     +
532 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
533 :    
534 :     //--------------------------------------------------------------------
535 :     [2013/01/19]::
536 :     +
537 :     Fix AMD64 code generator to properly sign-extend arguments to +IDIVQ+.
538 :     +
539 :     owner:[Lars Bergstrom]
540 :    
541 :     //--------------------------------------------------------------------
542 :     [2012/10/20]::
543 :     +
544 :     Fix bug bugref:[108] (off-by-one error in +Util/dynamic-array.sml+;
545 :     iterators crash)
546 :     +
547 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
548 :    
549 :     //--------------------------------------------------------------------
550 :     [2012/10/20]::
551 :     +
552 :     Fix bug bugref:[107] (Bogus +Int64+ comparison operators)
553 :     +
554 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
555 :    
556 :     //====================================================================
557 :     == Version 110.75; 2012/10/01
558 :    
559 :    
560 :     //--------------------------------------------------------------------
561 :     [2012/09/28]::
562 :     +
563 :     Fixed bug bugref:[92]. +IntInf.scan+ now handles the "++0x++" prefix
564 :     correctly. Also made minor improvements to the +NumScan+ module.
565 :     +
566 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
567 :    
568 :     //--------------------------------------------------------------------
569 :     [2012/09/24]::
570 :     +
571 :     Added +Base64+ module to *SML/NJ Library* to support encoding and decoding
572 :     +Word8+ vectors as *base64* strings.
573 :     +
574 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
575 :    
576 :     //--------------------------------------------------------------------
577 :     [2012/09/23]::
578 :     +
579 :     Additions to the *SML/NJ Library*. Added +exists+, +existsi+, +all+,
580 :     and +alli+ functions to +ORD_MAP+ signature and implementations,
581 :     and added +all+ function to +ORD_SET+ signature and implementations.
582 :     +
583 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
584 :    
585 :     //--------------------------------------------------------------------
586 :     [2012/09/21]::
587 :     +
588 :     Bug fix in *ml-antlr* to ensure that the generated +toString+ function
589 :     for tokens is strictly legal *SML* code (_i.e._, non-printing characters
590 :     and *UTF8* multibyte sequences are properly escaped).
591 :     +
592 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
593 :    
594 :     //--------------------------------------------------------------------
595 :     [2012/09/11]::
596 :     +
597 :     Added +getu+ function to +ULexBuffer+ as a way to improve *ml-ulex*
598 :     performance. This addition allows a fastpath for processing ASCII
599 :     characters, which improved lexer performance by 3-4%.
600 :     +
601 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
602 :    
603 :     //--------------------------------------------------------------------
604 :     [2012/08/02]::
605 :     +
606 :     Fixed bugs bugref:[89] and bugref:[96]: Build Failure with *Xcode 4.3*
607 :     Also removed build support for *MacOS X* pre-10.5 (Leopard) on *PPC* and
608 :     pre-10.6 (Snow Leopard) on Intel.
609 :     +
610 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
611 :    
612 :     //--------------------------------------------------------------------
613 :     [2012/02/05]::
614 :     +
615 :     Fixed bug bugref:[88]. The check for valid arcs on *Unix* systems now allows
616 :     any character other than slash or nul.
617 :     +
618 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
619 :    
620 :     //====================================================================
621 :     == Version 110.74; 2012/01/20
622 :    
623 :    
624 :     //--------------------------------------------------------------------
625 :     [2012/01/20]::
626 :     +
627 :     Fixed implementation of +Real.signBit+ on little-endian machines.
628 :     +
629 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
630 :    
631 :     //--------------------------------------------------------------------
632 :     [2012/01/19]::
633 :     +
634 :     1) Fix for bug bugref:[60]
635 :     recalculate strictness for ++DEFtyc++s in functor bodies when functor
636 :     is applied (+Elaborator/modules/evalent.sml+)
637 :     +
638 :     2) Fix for bug bugref:[77]
639 :     separate ast representations for datatypes and datatype replications
640 :     in decs and specs (multiple files)
641 :     +
642 :     3) set version to 110.74
643 :     +
644 :     Details in +NOTES/changes/dbm_2012_1+.
645 :     +
646 :     owner:[David MacQueen]
647 :    
648 :     //--------------------------------------------------------------------
649 :     [2012/01/12]::
650 :     +
651 :     1. Change of +SourceMap+ interface.
652 :     related to fix of off-by-one error in lexer (committed earlier?),
653 :     and cleanup of *noweb* code added by Norman Ramsey many years
654 :     ago (but little used today).
655 :     +
656 :     2. Slight cleanup of match compiler, eliminating +compiler/FLINT/tempexpn.sml+
657 :     file that was part of unused implementation of pattern templates (pattern macros).
658 :     +
659 :     3. Modification of type checker to add "culprit tracking" for
660 :     improved type error messages (printing of additional culprit
661 :     information is controlled by +ElabControl.showTypeErrorCulprits+
662 :     flag, default false, added in revision 3652). The culprit tracking needs to be debugged
663 :     and improved, and the presentation of the culprits needs to be done better.
664 :     +
665 :     Details in +NOTES/changes/dbm_2012_1+.
666 :     +
667 :     owner:[David MacQueen]
668 :    
669 :     //--------------------------------------------------------------------
670 :     [2011/11/25]::
671 :     +
672 :     Bug fixes for +Unsafe.blastRead+ (bug bugref:[76]):
673 :     . proper error handling when reading from memory and there are
674 :     not enough bytes.
675 :     . pass correct data pointer and length to BlastIn (code was using
676 :     old macros).
677 :     +
678 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
679 :    
680 :     //--------------------------------------------------------------------
681 :     [2011/11/25]::
682 :     +
683 :     Added hash-table-based implementation of sets to SML/NJ Library.
684 :     +
685 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
686 :    
687 :     //--------------------------------------------------------------------
688 :     [2011/10/25]::
689 :     +
690 :     Better error reporting under 32-bit linux for the missing dpkg
691 :     support (bug bugref:[70]).
692 :     Enable 3.x kernels to build (bugs bugref:[80], bugref:[81], bugref:[83]).
693 :     +
694 :     owner:[Lars Bergstrom]
695 :    
696 :     //--------------------------------------------------------------------
697 :     [2011/05/23]::
698 :     +
699 :     Added new S-expression library to SML/NJ Library
700 :     (contributed by Damon Wang)
701 :     +
702 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
703 :    
704 :     //--------------------------------------------------------------------
705 :     [2011/05/17]::
706 :     +
707 :     Fixed bug in JSON scanner (SML/NJ Library). It didn't handle escaped
708 :     backslash or double quote correctly.
709 :     +
710 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
711 :    
712 :     //====================================================================
713 :     == Version 110.73; 2011/05/13
714 :    
715 :    
716 :     //--------------------------------------------------------------------
717 :     [2011/05/10]::
718 :     +
719 :     Added boolean literals (true and false) to the conditional-expression
720 :     syntax in CM. Thus, you can write
721 :     +
722 :     ....................
723 :     #if true
724 :     structure Foo
725 :     #endif
726 :     ....................
727 :     +
728 :     in a CM file. This change is meant to make it easier to use *autoconf*
729 :     to configure the build process of an SML application.
730 :     +
731 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
732 :    
733 :     //--------------------------------------------------------------------
734 :     [2011/05/09]::
735 :     +
736 :     Added missing +String.scan+ function (bug bugref:[69]). This also
737 :     fixes the handling of certain corner cases by +String.fromString+.
738 :     +
739 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
740 :    
741 :     //--------------------------------------------------------------------
742 :     [2011/05/03]::
743 :     +
744 :     Added the +RTDSC+ and +RTDSCP+ instructions to the amd64 code generator.
745 :     +
746 :     owner:[Mike Rainey,http://www.mpi-sws.org/~mrainey]
747 :    
748 :     //--------------------------------------------------------------------
749 :     [2011/04/08]::
750 :     +
751 :     Added fix for comments in code bug (bug bugref:[63]).
752 :     Thanks to Michael Norrish.
753 :     +
754 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
755 :    
756 :     //--------------------------------------------------------------------
757 :     [2011/04/08]::
758 :     +
759 :     Fixed bug in +Socket.acceptNB+ (bug bugref:[59])
760 :     +
761 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
762 :    
763 :     //--------------------------------------------------------------------
764 :     [2011/03/31]::
765 :     +
766 :     Fixed syntax error in *ml-lex* compatibility mode (bug bugref:[49])
767 :     +
768 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
769 :    
770 :     //--------------------------------------------------------------------
771 :     [2011/03/22]::
772 :     +
773 :     Update +_arch-n-opsys+ script for Mac OS X Lion (10.7).
774 :     +
775 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
776 :    
777 :     //--------------------------------------------------------------------
778 :     [2011/02/18]::
779 :     +
780 :     Added +Barriers+ module to CML.
781 :     +
782 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
783 :    
784 :     //--------------------------------------------------------------------
785 :     [2011/02/10]::
786 :     +
787 :     Fixed *ml-yacc* examples to respect the changed signatures with respect
788 :     to +TextIO.inputLine+.
789 :     +
790 :     owner:[Lars Bergstrom]
791 :    
792 :     //--------------------------------------------------------------------
793 :     [2010/09/16]::
794 :     +
795 :     Changed the *Win32* implementation of +validArc+ to support directories
796 :     with extended characters (umlauts, etc.).
797 :     +
798 :     owner:[Lars Bergstrom]
799 :    
800 :     //--------------------------------------------------------------------
801 :     [2010/09/16]::
802 :     +
803 :     Fixed the *Win32* socket and polling implementation to work correctly
804 :     with CML. Signature of +poll+ was wrong and didn't handle sockets at all.
805 :     +
806 :     owner:[Lars Bergstrom]
807 :    
808 :     //--------------------------------------------------------------------
809 :     [2010/06/16]::
810 :     +
811 :     Fixed +Real.toString+ and +Real.fmt+ to include sign for negative zero.
812 :     +
813 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
814 :    
815 :     //--------------------------------------------------------------------
816 :     [2010/03/23]::
817 :     +
818 :     Fixed the bug with *Win32* calls to +OS.Process.system+ not quoting
819 :     the string.
820 :     +
821 :     owner:[Lars Bergstrom]
822 :    
823 :     //--------------------------------------------------------------------
824 :     [2010/02/11]::
825 :     +
826 :     Applied patch for building on more recent versions of *NetBSD*
827 :     (bug bugref:[39]).
828 :     +
829 :     owner:[Jon Riehl,http://jonriehl.com/]
830 :    
831 :     //====================================================================
832 :     == Version 110.72; 2010/02/02
833 :    
834 :    
835 :     //--------------------------------------------------------------------
836 :     [2009/12/20]::
837 :     +
838 :     Fixed performance bugs in +List+ module by making +@+ and +foldr+ be
839 :     tail recursive (bug bugref:[51]).
840 :     +
841 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
842 :    
843 :     //--------------------------------------------------------------------
844 :     [2009/12/11]::
845 :     +
846 :     Fixed the *Win32* unable to print long strings bug (bug bugref:[37]).
847 :     +
848 :     owner:[Lars Bergstrom]
849 :    
850 :     //--------------------------------------------------------------------
851 :     [2009/12/10]::
852 :     +
853 :     Fixed an overrun during major GC. If the string arena was nearly
854 :     full, it was possible for alignment padding added during copy to
855 :     the to-space to overrun the allocated size.
856 :     +
857 :     owner:[Lars Bergstrom]
858 :    
859 :     //--------------------------------------------------------------------
860 :     [2009/11/18]::
861 :     +
862 :     The *ml-antlr* and *ml-ulex* programs have been ported to build under
863 :     mlton.
864 :     +
865 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
866 :    
867 :     //--------------------------------------------------------------------
868 :     [2009/11/17]::
869 :     +
870 :     Added +%header+ directive to the *ml-ulex* scanner generator. Also
871 :     updated the documentation.
872 :     +
873 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
874 :    
875 :     //--------------------------------------------------------------------
876 :     [2009/11/17]::
877 :     +
878 :     Added +@SMLsuffix+ flag to *sml* command. This flag can be used to get
879 :     the suffix for heap files.
880 :     +
881 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
882 :    
883 :     //--------------------------------------------------------------------
884 :     [2009/11/17]::
885 :     +
886 :     Added +--strict-sml+ flag to *ml-ulex* for *MLton* compatibility.
887 :     +
888 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
889 :    
890 :     //--------------------------------------------------------------------
891 :     [2009/11/10]::
892 :     +
893 :     Added +%header+ directive to the *ml-antlr* parser generator. Also
894 :     updated the documentation.
895 :     +
896 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
897 :    
898 :     //====================================================================
899 :     == Version 110.71; 2009/09/16
900 :    
901 :    
902 :     //--------------------------------------------------------------------
903 :     [2009/09/13]::
904 :     +
905 :     Changes to support compiling the runtime system on Mac OS X 10.6
906 :     (aka Snow Leopard).
907 :     +
908 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
909 :    
910 :     //--------------------------------------------------------------------
911 :     [2009/08/19]::
912 :     +
913 :     Fixed a bug in the register-spill generator that is part of the MLRISC
914 :     register allocator. The problem was that the code in +RASpillWithRenaming+
915 :     functor assumed incorrectly that dedicated registers would appear in
916 :     def/use information generated by +ClusterRA+. Thanks to Allen Leung for
917 :     helping with this bug.
918 :     +
919 :     owner:[Mike Rainey,http://cs.uchicago.edu/~mrainey]
920 :    
921 :     //--------------------------------------------------------------------
922 :     [2009/07/09]::
923 :     +
924 :     Removed redundant implementations of various top-level operations by
925 :     consolidating them in +base/system/smlnj/init/pervasive.sml+. This
926 :     change also fixes a bug in that the top-level version of +round+ was
927 :     incorrect.
928 :     +
929 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
930 :    
931 :     //====================================================================
932 :     == Version 110.70; 2009/06/15
933 :    
934 :    
935 :     //--------------------------------------------------------------------
936 :     [2009/06/12]::
937 :     +
938 :     --
939 :     1. Corrected problem in config/actions that led to the so-called
940 :     "unpickling bug" which appeared in version 110.68.
941 :     +
942 :     2. Provided fix for the 64-bit pattern match bug.
943 :     --
944 :     +
945 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
946 :    
947 :     //--------------------------------------------------------------------
948 :     [2009/03/21]::
949 :     +
950 :     Fixed bug in +Int32.fmt+ when the argument was the minimum int and the
951 :     radix was something other than +DEC+.
952 :     +
953 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
954 :    
955 :     //--------------------------------------------------------------------
956 :     [2009/02/21]::
957 :     +
958 :     Fixed bugs in how *ml-antlr* parsed ML types in +%tokens+ specifications.
959 :     +
960 :     owner:[Aaron Turon]
961 :    
962 :     //--------------------------------------------------------------------
963 :     [2009/01/13]::
964 :     +
965 :     Picking up some additional fixes for 110.69, including a fix for
966 :     spaces in CM file paths.
967 :     +
968 :     owner:[Jon Riehl,http://www.jonriehl.com/]
969 :    
970 :     //====================================================================
971 :     == Version 110.69; 2008/12/22
972 :    
973 :    
974 :     //--------------------------------------------------------------------
975 :     [2008/12/06]::
976 :     +
977 :     Re-enabled some CPS optimizations (first_contract and eta). The most
978 :     important effect of this change is to make uses of +SMLofNJ.Cont.capture+
979 :     be properly tail recursive.
980 :     +
981 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
982 :    
983 :     //--------------------------------------------------------------------
984 :     [2008/12/03]::
985 :     +
986 :     New concurrency-related instructions for x86 and amd64 code
987 :     generators.
988 :     --
989 :     - +PAUSE+: Notify the CPU that the program is spin waiting.
990 :     - +MFENCE+: memory fence for reads and writes.
991 :     - +SFENCE+: memory fence for writes.
992 :     - +LFENCE+: memory fence for reads.
993 :     --
994 :     +
995 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
996 :    
997 :     //--------------------------------------------------------------------
998 :     [2008/12/02]::
999 :     +
1000 :     Added makefile and other support for building runtime on *OpenBSD*.
1001 :     +
1002 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1003 :    
1004 :     //====================================================================
1005 :     == Version 110.68; 2008/08/13
1006 :    
1007 :    
1008 :     //--------------------------------------------------------------------
1009 :     [2008/08/11]::
1010 :     +
1011 :     Minor fix to *ml-ulex* backend for regexps that match any character
1012 :     and perform a single action. Previously the emitted code would
1013 :     not allow the regexps to match any character at all.
1014 :     +
1015 :     owner:[Aaron Turon]
1016 :    
1017 :     //--------------------------------------------------------------------
1018 :     [2008/08/05]::
1019 :     +
1020 :     Added build support for *OpenBSD* (thanks to Brian O'Hanlon).
1021 :     +
1022 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1023 :    
1024 :     //--------------------------------------------------------------------
1025 :     [2008/07/12]::
1026 :     +
1027 :     Fixed +Int64.fromString+ to use base-10.
1028 :     +
1029 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1030 :    
1031 :     //--------------------------------------------------------------------
1032 :     [2008/04/12]::
1033 :     +
1034 :     Various updates to the ml-lpt tree. The documentation has been updated;
1035 :     bugs in the parsing of negation and character classes in *ml-ulex* have
1036 :     been fixed; and changes have been made to make the *ml-lpt* tools more
1037 :     compatible with *MLton* (and other SML implementations). Thanks to
1038 :     Matthew Fluet and Aaron Turon for their patches.
1039 :     +
1040 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1041 :    
1042 :     //--------------------------------------------------------------------
1043 :     [2008/20/04]::
1044 :     +
1045 :     Implemented timer-based profiling on Windows, with behavior as close
1046 :     to the *nix ITIMER-based profiling as possible.
1047 :     +
1048 :     owner:[Lars Bergstrom]
1049 :    
1050 :     //--------------------------------------------------------------------
1051 :     [2008/07/04]::
1052 :     +
1053 :     Finished off the Windows subset of the basis library. Added process
1054 :     support and various configuration and system identification utils.
1055 :     +
1056 :     owner:[Lars Bergstrom]
1057 :    
1058 :     //--------------------------------------------------------------------
1059 :     [2008/03/18]::
1060 :     +
1061 :     Major changes to the RegExp library: see smlnj-lib/CHANGES for details.
1062 :     +
1063 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1064 :    
1065 :     //--------------------------------------------------------------------
1066 :     [2008/02/14]::
1067 :     +
1068 :     Added the Windows Status structure
1069 :     +
1070 :     owner:[Lars Bergstrom]
1071 :    
1072 :     //--------------------------------------------------------------------
1073 :     [2008/02/14]::
1074 :     +
1075 :     Added the Windows DDE structure
1076 :     +
1077 :     owner:[Lars Bergstrom]
1078 :    
1079 :     //--------------------------------------------------------------------
1080 :     [2008/02/05]::
1081 :     +
1082 :     Added the Windows Config structure
1083 :     +
1084 :     owner:[Lars Bergstrom]
1085 :    
1086 :     //--------------------------------------------------------------------
1087 :     [2008/01/31]::
1088 :     +
1089 :     Added outline of the Windows basis library and the basic registry
1090 :     functionality.
1091 :     +
1092 :     owner:[Lars Bergstrom]
1093 :    
1094 :     //--------------------------------------------------------------------
1095 :     [2008/01/23]::
1096 :     +
1097 :     Fixed the amd64 code generator to compile with the current MLRISC.
1098 :     +
1099 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1100 :    
1101 :     //--------------------------------------------------------------------
1102 :     [2007/11/26]::
1103 :     +
1104 :     *nlffi* was updated to work on Windows. It needed to pass in the correct
1105 :     value for the name of the kernel32 DLL to obtain 'base' bindings.
1106 :     Additionally updated the README for the most basic *nlffi* sample with
1107 :     what you need to do on MacOSX and on Windows to make it work.
1108 :     +
1109 :     owner:[Lars Bergstrom]
1110 :    
1111 :     //--------------------------------------------------------------------
1112 :     [2007/11/21]::
1113 :     +
1114 :     Overwrite the +SMLNJ_HOME+ environment variable on installation
1115 :     Properly change the package code so that subsequent version
1116 :     installations prompt for uninstall (instead of 'repair/remove')
1117 :     +
1118 :     owner:[Lars Bergstrom]
1119 :    
1120 :     //--------------------------------------------------------------------
1121 :     [2007/11/14]::
1122 :     +
1123 :     Cleaned up +WININSTALL+ file for new MSI-based setup.
1124 :     +
1125 :     owner:[Lars Bergstrom]
1126 :    
1127 :     //====================================================================
1128 :     == Version 110.67; 2007/11/13
1129 :    
1130 :    
1131 :     //--------------------------------------------------------------------
1132 :     [2007/11/12]::
1133 :     +
1134 :     Ensure that the size of the allocation space is at least 128K.
1135 :     +
1136 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1137 :    
1138 :     //--------------------------------------------------------------------
1139 :     [2007/11/05]::
1140 :     +
1141 :     Fixed type error in *ml-lpt* library that occurs when compiling
1142 :     against a basis that was compiled with the +USE_64_BIT_POSITIONS+
1143 :     symbol set.
1144 :     (Thanks to Johannes Joemann)
1145 :     +
1146 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1147 :    
1148 :     //--------------------------------------------------------------------
1149 :     [2007/11/03]::
1150 :     +
1151 :     Fixed the amd64 code generator to compile with the current MLRISC.
1152 :     +
1153 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1154 :    
1155 :     //--------------------------------------------------------------------
1156 :     [2007/11/02]::
1157 :     +
1158 :     Made +sml.bat+ more resilient to either not having run the installer
1159 :     and having no +SMLNJ_HOME+ set or having just shuffled the directory
1160 :     around.
1161 :     +
1162 :     owner:[Lars Bergstrom]
1163 :    
1164 :     //--------------------------------------------------------------------
1165 :     [2007/11/01]::
1166 :     +
1167 :     A collection of bug fixes for +machine.sml+ in the Reactive library.
1168 :     (Thanks to Timothy Bourke)
1169 :     +
1170 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1171 :    
1172 :     //--------------------------------------------------------------------
1173 :     [2007/10/28]::
1174 :     +
1175 :     Patches for Mac OS X 10.5 (Leopard).
1176 :     +
1177 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1178 :    
1179 :     //--------------------------------------------------------------------
1180 :     [2007/10/28]::
1181 :     +
1182 :     Fixed some bugs in the AMD64 floating-point spilling code.
1183 :     +
1184 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1185 :    
1186 :     //--------------------------------------------------------------------
1187 :     [2007/10/25]::
1188 :     +
1189 :     Added support for the atomic +XCHG+ instruction.
1190 :     +
1191 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1192 :    
1193 :     //--------------------------------------------------------------------
1194 :     [2007/10/22]::
1195 :     +
1196 :     Added AMD64 support for floating-point negation.
1197 :     +
1198 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1199 :    
1200 :     //--------------------------------------------------------------------
1201 :     [2007/10/22]::
1202 :     +
1203 :     Fixed ^C handling in Windows
1204 :     Added a Windows installer
1205 :     Made it possible to build for *Windows* on a mapped drive from Parallels
1206 :     +
1207 :     owner:[Lars Bergstrom]
1208 :    
1209 :     //--------------------------------------------------------------------
1210 :     [2007/10/22]::
1211 :     +
1212 :     Added AMD64 support for the atomic fetch and add instruction.
1213 :     +
1214 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1215 :    
1216 :     //--------------------------------------------------------------------
1217 :     [2007/10/18]::
1218 :     +
1219 :     The GAS output now favors +p2align+ over +align+, since the
1220 :     former is guaranteed to be consistent over multiple architectures
1221 :     and the latter is not.
1222 :     +
1223 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1224 :    
1225 :     //--------------------------------------------------------------------
1226 :     [2007/10/18]::
1227 :     +
1228 :     Fixed a bug in register spilling.
1229 :     +
1230 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1231 :    
1232 :     //--------------------------------------------------------------------
1233 :     [2007/10/2]::
1234 :     +
1235 :     Added demo support for AMD64 for quick testing and fixed support for
1236 :     64-bit label constants.
1237 :     +
1238 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1239 :    
1240 :     //--------------------------------------------------------------------
1241 :     [2007/09/20]::
1242 :     +
1243 :     Added support for the MLRISC +COND+ instruction and the x86-64 +CMOVCC+
1244 :     instruction.
1245 :     +
1246 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1247 :    
1248 :     //--------------------------------------------------------------------
1249 :     [2007/09/17]::
1250 :     +
1251 :     Fixed an instruction-selection bug when loading 64-bit labels.
1252 :     +
1253 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1254 :    
1255 :     //--------------------------------------------------------------------
1256 :     [2007/09/14]::
1257 :     +
1258 :     Fixed +Elaborator+ and +Translate+ performance bugs
1259 :     +
1260 :     owner:[George Kuan,http://www.cs.uchicago.edu/~gkuan]
1261 :    
1262 :     //--------------------------------------------------------------------
1263 :     [2007/09/12]::
1264 :     +
1265 :     Fixed +xorl+ memory argument bug.
1266 :     +
1267 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1268 :    
1269 :     //--------------------------------------------------------------------
1270 :     [2007/07/27]::
1271 :     +
1272 :     Added +f64sgn+ (for +Real64.signBit+) as a primop defined
1273 :     in +MLRiscGen+. +signBit+(~0.0) not handled correctly.
1274 :     +
1275 :     owner:[George Kuan,http://www.cs.uchicago.edu/~gkuan]
1276 :    
1277 :     //--------------------------------------------------------------------
1278 :     [2007/06/21]::
1279 :     +
1280 :     Fixed bug in {++TextIO++,++BinIO++}++.StreamIO.endOfStream++ that
1281 :     would incorrectly signal end of stream.
1282 :     +
1283 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1284 :    
1285 :     //--------------------------------------------------------------------
1286 :     [2007/06/12]::
1287 :     +
1288 :     Eliminated +config/allsources+. The information is now drawn directly
1289 :     from +config/actions+.
1290 :     +
1291 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1292 :    
1293 :     //====================================================================
1294 :     == Version 110.65; 2007/06/07
1295 :    
1296 :    
1297 :     //--------------------------------------------------------------------
1298 :     [2007/06/06]::
1299 :     +
1300 :     --
1301 :     * Aaron: fixed a number of bugs in *ml-ulex*.
1302 :     * Matthias:
1303 :     ** added CM control +cm.force-tools+; this is false by default;
1304 :     when set to true, then tools like *ml-yacc*, *ml-lex*, *ml-ulex*, etc.
1305 :     will be forced to run regardless of whether or not their targets
1306 :     are up-to-date
1307 :     ** changed installer code so that +config/install.sh+ will re-build
1308 :     heap images for all tools even if those heap images already existed
1309 :     --
1310 :     +
1311 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1312 :    
1313 :     //--------------------------------------------------------------------
1314 :     [2007/06/04]::
1315 :     +
1316 :     After Aaron Turon's bug fix for *ml-ulex* (handling the +^+ character
1317 :     in legacy mode), re-ran the lexer generator on all lex input files
1318 :     and committed the results.
1319 :     +
1320 :     This should fix the problem with *ckit* and *nlffi* that was reported
1321 :     by Vesa A. Norrman.
1322 :     +
1323 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1324 :    
1325 :     //====================================================================
1326 :     == Version 110.64; 2007/05/31
1327 :    
1328 :    
1329 :     //--------------------------------------------------------------------
1330 :     [2007/05/31]::
1331 :     +
1332 :     3rd merge of base from primop-branch-3 into the trunk.
1333 :     Additional bug fixes included:
1334 :     +
1335 :     * +Timer.cpu_timer+, etc. type printing corrected (by making
1336 :     +Timer+ have opaque sig constraint in +basis/Implementation/timer.sml+)
1337 :     * Infinite loop in FLINT (+tests/typing/tests/25.sml+) (fix by
1338 :     Stefan Monnier)
1339 :     +
1340 :     owner:[Dave MacQueen]
1341 :    
1342 :     //--------------------------------------------------------------------
1343 :     [2007/05/31]::
1344 :     +
1345 :     Fixed some bugs in new Div code in +FLINT/trans/translate.sml+.
1346 :     +
1347 :     Also, changed the handling of "no core access": When +translate.sml+
1348 :     needs access to a core exception at a time when the core has not
1349 :     been set up yet (this only happens when compiling +system/smlnj/init/+*),
1350 :     then don't bother generating the corresponding tests.
1351 :     +
1352 :     The old scheme was to generate a bogus value to be used in place of
1353 :     the exception. Unfortunately, that confuses the plambda type checker.
1354 :     Moreover, it does not do any good, because at runtime we don't expect
1355 :     such an exception to be ever raised. (The code in +system/smlnj/init/+*
1356 :     has to be written very carefully with this in mind!)
1357 :     +
1358 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1359 :    
1360 :     //--------------------------------------------------------------------
1361 :     [2007/05/29]::
1362 :     +
1363 :     Added +FSQRT+ instructions for the AMD64 code generator.
1364 :     +
1365 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1366 :    
1367 :     //--------------------------------------------------------------------
1368 :     [2007/05/29]::
1369 :     +
1370 :     +FLINT/trans/translate.sml+ now wraps all +DIV+/+MOD+/+QUOT+/+REM+
1371 :     operations with an explicit test for zero division. This should
1372 :     fixe several regressions and makes it possible for downstream optimization
1373 :     phases to treat these operations as "pure" when they are applied to unsigned
1374 :     operands.
1375 :     +
1376 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1377 :    
1378 :     //--------------------------------------------------------------------
1379 :     [2007/05/29]::
1380 :     +
1381 :     Added the new MLRISC code generator for the AMD64. This version,
1382 :     in contrast to the previous one, uses SSE registers and instructions
1383 :     for all floating-point computations.
1384 :     +
1385 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1386 :    
1387 :     //--------------------------------------------------------------------
1388 :     [2007/05/29]::
1389 :     +
1390 :     A number of fixes related to the formatting of dates. These include fixes
1391 :     for bugs #1415 and #1416. We also now correctly handle format characters that
1392 :     lie outside the specified set.
1393 :     +
1394 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1395 :    
1396 :     //--------------------------------------------------------------------
1397 :     [2007/05/23]::
1398 :     +
1399 :     CMB (and CM) now automatically defines the CM "preprocessor" symbol
1400 :     NO_PLUGINS during "makeml -rebuild" or when CM operates in "slave" mode.
1401 :     +
1402 :     (In addition, CMB_REBUILD_MODE is defined for +makeml -rebuild+,
1403 :     CM_SLAVE_MODE is defined in attached slaves while running CM.make
1404 :     or CM.rebuild, and CMB_SLAVE_MODE is defined in attached slaves
1405 :     while running +CMB.make+. The point is that the single symbol
1406 :     NO_PLUGINS is definde in all three cases.)
1407 :     +
1408 :     I changed the three locations within the sources that get compiled
1409 :     during +CMB.make+ where *ml-yacc* or *ml-lex* input is processed: When
1410 :     NO_PLUGINS defined, then the use of the mlyacc and mllex tools
1411 :     is bypassed.
1412 :     +
1413 :     When bootstrapping new versions of the compiler, there can be
1414 :     situations where the plugin tools for *ml-yacc* and *ml-lex* (or *ml-ulex*)
1415 :     are not available or otherwise not operational. In this case one can
1416 :     manually define the NO_PLUGINS symbol prior to running +CMB.make()+. To
1417 :     do so, the following command should be issued at the interactive
1418 :     prompt:
1419 :     +
1420 :     [source,sml]
1421 :     ------------
1422 :     #set (CMB.symval "NO_PLUGINS") (SOME 1);
1423 :     ------------
1424 :     +
1425 :     A +CMB.make+ with NO_PLUGINS defined relies on the existence of the
1426 :     files that normally would be generated by *ml-yacc* and *ml-lex*.
1427 :     (Copies of these files are in the repository.)
1428 :     +
1429 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1430 :    
1431 :     //--------------------------------------------------------------------
1432 :     [2007/5/23]::
1433 :     +
1434 :     Second merge of base from +primop-branch-3+ into the trunk.
1435 :     Additional bug fixes included:
1436 :     --
1437 :     * +Date.scan+ and +Date.fromString+ fixed;
1438 :     * Overloading resolution fixed and some type printing problems corrected.
1439 :     --
1440 :     +
1441 :     owner:[David MacQueen]
1442 :    
1443 :     //--------------------------------------------------------------------
1444 :     [2007/05/23]::
1445 :     +
1446 :     Changed the installation mechanism for CM tool plugins. These are
1447 :     just libaries and now get installed like ordinary libaries.
1448 :     +
1449 :     There are now a number of new installation targets that give some
1450 :     fine-grain control over what classes and suffixes are known, and what
1451 :     they will map to.
1452 :     See +config/targets+ for details.
1453 :     +
1454 :     The code that caused plugin installation as part of running a
1455 :     tool's "build" script has been removed. (The build script is for
1456 :     building, not for installing.)
1457 :     +
1458 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1459 :    
1460 :     //--------------------------------------------------------------------
1461 :     [2007/05/22]::
1462 :     +
1463 :     Added a boolean control named cm.tolerate-tool-failures (env. variable
1464 :     name: CM_TOLERATE_TOOL_FAILURES). The default is false and makes
1465 :     CM fail if a shell tool reports a non-success exit status. If
1466 :     the control is set to true, then CM will press on after tool failures
1467 :     in the event that the target files exist (even though they are
1468 :     considered outdated). Turning the control to true can be useful for
1469 :     bootstrapping.
1470 :     +
1471 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1472 :    
1473 :     //--------------------------------------------------------------------
1474 :     [2007/05/19]::
1475 :     +
1476 :     Merge of ml-lpt revisions for 110.64.
1477 :     +
1478 :     The name of several ml-lpt-lib modules has changed:
1479 :     +
1480 :     [grid="none",frame="none",width="50%",cols=">2,^1,<2"]
1481 :     |===============================================
1482 :     | +Repair+ | => | +AntlrRepair+
1483 :     | +StreamPos+ | => | +AntlrStreamPos+
1484 :     | +ErrHandlerFn+ | => | +AntlrErrHandler+
1485 :     | +EBNF+ | => | +AntlrEBNF+
1486 :     |===============================================
1487 :     +
1488 :     The *ml-antlr* specification format has changed: declarations such as
1489 :     +%tokens+ and nonterminal definitions can occur *multiple* times in the
1490 :     same specification. The semantics are such that each new declaration
1491 :     extends the previous ones. This does not apply to +%start+ or +%name+,
1492 :     of course.
1493 :     +
1494 :     Importing a grammar via +%import+ now includes *all* declarations in from
1495 :     the imported grammar, except for +%name+, +%entry+, and +%start+. Tokens
1496 :     and nonterminals can be dropped using the new +%dropping+ clause of the
1497 :     +%import+ directive; the separate +%drop+ and +%extend+ have been removed.
1498 :     +
1499 :     We now allow optional type annotations on nonterminals, using the +%nonterms+
1500 :     directive as in *ml-yacc*.
1501 :     +
1502 :     The +refcell+ construct is now implemented using SML's regular reference
1503 :     cells, so the +:==+ and +!!+ notation has been deprecated.
1504 :     +
1505 :     The *ml-antlr* tool now does much more checking of specifications, and
1506 :     its error messages have been greatly improved. Error repair for
1507 :     generated parsers has been completely rewritten, and is now both
1508 :     much faster and more accurate.
1509 :     +
1510 :     *ml-ulex* is now more lenient with escape codes (non-SML-standard
1511 :     escape codes are now interpreted literally, so _e.g._, +\|+ denotes "+|+").
1512 :     Also, character classes may now include a "+-+" character at the beginning
1513 :     as is standard in most other regexp tools.
1514 :     +
1515 :     All of these changes are documented in the user guide, which has
1516 :     been updated and improved with this merge.
1517 :     +
1518 :     owner:[Aaron Turon,http://www.cs.uchicago.edu/~adrassi]
1519 :    
1520 :     //--------------------------------------------------------------------
1521 :     [2007/05/03]::
1522 :     +
1523 :     Merge of the primop3 branch (base) into the trunk to create 110.63.1.
1524 :     Significant changes in FLINT and the front end, mostly having to do
1525 :     with a reorganized system for handling primops. Various bug fixes
1526 :     and improvements in printing signatures.
1527 :     +
1528 :     owner:[David MacQueen,http://www.cs.uchicago.edu/~jhr]
1529 :    
1530 :     //--------------------------------------------------------------------
1531 :     [2007/05/02]::
1532 :     +
1533 :     Preliminary commit of large *ml-lpt* revisions (more to come for 110.64).
1534 :     The *ml-antlr* specification format has changed: declarations such as
1535 :     +%tokens+ and nonterminal definitions can occur *multiple* times in the
1536 :     same specification. The semantics are such that each new declaration
1537 :     extends the previous ones. Grammar extension constructs have also
1538 :     changed. We now allow type annotations on nonterminals. Finally,
1539 :     the refcell construct is now implemented using SML's regular reference
1540 :     cells, so the +:==+ and +!!+ notation has been deprecated. All of these
1541 :     changes will appear in the 110.64 user guide for *ml-lpt*.
1542 :     +
1543 :     The *ml-antlr* tool now does much more checking of specifications, and
1544 :     its error messages have been greatly improved. There has also been
1545 :     some work on the error repair process for generated parsers, but this
1546 :     will be further improved in 110.64.
1547 :     +
1548 :     owner:[Aaron Turon,http://www.cs.uchicago.edu/~adrassi]
1549 :    
1550 :     //--------------------------------------------------------------------
1551 :     [2007/04/24]::
1552 :     +
1553 :     More Basis fixes: The +Char.fromString+ (_etc._) functions did not handle
1554 :     the "+\uxxxx+" escape sequence. There is still an outstanding bug with
1555 :     +String.fromString+ the tail is a format escape. I added a comment to
1556 :     this effect in +Basis/Implementation/string.sml+.
1557 :     Thanks to Andreas Rossberg.
1558 :     +
1559 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1560 :    
1561 :     //--------------------------------------------------------------------
1562 :     [2007/04/24]::
1563 :     +
1564 :     Added +next+ function to +Fifo+ and +Queue+ modules in the SML/NJ Library.
1565 :     +
1566 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1567 :    
1568 :     //--------------------------------------------------------------------
1569 :     [2007/04/23]::
1570 :     +
1571 :     More Basis fixes: +Time.fmt+ dropped the leading "+~+" for negative time
1572 :     values that had no whole part.
1573 :     +
1574 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1575 :    
1576 :     //--------------------------------------------------------------------
1577 :     [2007/04/23]::
1578 :     +
1579 :     More Basis fixes: the +OS.Path+ module did not include the +InvalidArc+
1580 :     exception and did not do sufficient argument checking.
1581 :     Thanks to Stephen Weeks and Adam Chilpala.
1582 :     +
1583 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1584 :    
1585 :     //--------------------------------------------------------------------
1586 :     [2007/04/16]::
1587 :     +
1588 :     Fixed an unbound functor bug in the AMD64 CM file.
1589 :     +
1590 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1591 :    
1592 :     //--------------------------------------------------------------------
1593 :     [2007/04/12]::
1594 :     +
1595 :     Substantially changed the signature and implementation of AMD64
1596 :     SVID. It now looks similar to the ia32 SVID, yet uses staged
1597 :     allocation.
1598 :     +
1599 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1600 :    
1601 :     //--------------------------------------------------------------------
1602 :     [2007/04/07]::
1603 :     +
1604 :     More Basis fixes: the +WORD+ signature was missing {++to++,++from++}++Large.++
1605 :     Thanks to Andreas Rossberg.
1606 :     +
1607 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1608 :    
1609 :     //====================================================================
1610 :     == Version 110.63; 2007/03/22
1611 :    
1612 :    
1613 :     //--------------------------------------------------------------------
1614 :     [2007/03/19]::
1615 :     +
1616 :     Fixed bogus operand sizes in AMD64 instruction spilling.
1617 :     +
1618 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1619 :    
1620 :     //--------------------------------------------------------------------
1621 :     [2007/03/19]::
1622 :     +
1623 :     Fixed a number of inconsistencies between the +Posix.TTY+ structure
1624 :     and the Basis specification. Thanks to Adam Chilpala.
1625 :     +
1626 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1627 :    
1628 :     //--------------------------------------------------------------------
1629 :     [2007/02/26]::
1630 :     +
1631 :     Added preliminary support in MLRISC for Staged Allocation, a technique
1632 :     for specifying calling conventions (see
1633 :     +http://www.eecs.harvard.edu/~nr/pubs/staged-abstract.html+).
1634 :     Initially, we plan to use this code to generate C calls for the AMD64.
1635 :     +
1636 :     The staged allocation code base resides in +MLRISC/staged-allocation+,
1637 :     and specialized calling conventions go in +MLRISC/ARCH/staged-allocation+.
1638 :     +
1639 :     owner:[Mike Rainey,http://www.cs.uchicago.edu/~mrainey]
1640 :    
1641 :     //--------------------------------------------------------------------
1642 :     [2007/02/20]::
1643 :     +
1644 :     Bug fix: when +SaveCState+ was called with two values to save, a subsequent
1645 :     GC could cause the +RestoreCState+ to fail because the saved state had been
1646 :     promoted to tagless pair.
1647 :     +
1648 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1649 :    
1650 :     //--------------------------------------------------------------------
1651 :     [2007/02/20]::
1652 :     +
1653 :     Fixed bug triggered by:
1654 :     +
1655 :     [source,sml]
1656 :     ------------
1657 :     val a1 = Word8Array.array(a1, 0w0);
1658 :     val _ = Word8Array.update(a1, 0, 0w128);
1659 :     ------------
1660 :     +
1661 :     The +x86MCEmitter+ crashed when the immediate operand to +MOVB+ was outside
1662 :     of the range +-128+ ... +127+. I've changed the code so that the range
1663 :     check is disabled. Only the low order 8 bits of the immediate operand
1664 :     are now significant.
1665 :     +
1666 :     owner:[Allen Leung]
1667 :    
1668 :     //--------------------------------------------------------------------
1669 :     [2007/02/15]::
1670 :     +
1671 :     Eliminated any mention of *lexgen*, which was an early precursor
1672 :     to *ml-ulex*.
1673 :     +
1674 :     You should update your admin directory, so the shell scripts for
1675 :     maintaining your local copy of the repository reflect this change.
1676 :     +
1677 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1678 :    
1679 :     //--------------------------------------------------------------------
1680 :     [2007/02/14]::
1681 :     +
1682 :     Fixed bug in CM's parallel make facility that failed to have
1683 :     the master re-link modules after letting slaves compile them.
1684 :     +
1685 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1686 :    
1687 :     //--------------------------------------------------------------------
1688 :     [2007/02/12]::
1689 :     +
1690 :     Fixed typo in *ml-build* script that prevented library anchors
1691 :     from being registered.
1692 :     +
1693 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1694 :    
1695 :     //====================================================================
1696 :     == Version 110.62; 2007/02/02
1697 :    
1698 :    
1699 :     //--------------------------------------------------------------------
1700 :     [2007/01/31]::
1701 :     +
1702 :     Brought ml-lpt manual up-to-date with the code. Many minor
1703 :     improvements to the tools, and a few minor bugfixes. Prepared
1704 :     ml-lpt-lib for integration with new +UTF8+ structure. Changed
1705 :     the interface for creating streams in *ml-ulex* (we now support
1706 :     stream creation from several kinds of sources). Overall, the
1707 :     tools are now quite stable, and their interfaces are unlikely to
1708 :     change in a way that would break compatibility. More work,
1709 :     however, is needed in the documentation.
1710 :     +
1711 :     owner:[Aaron Turon,http://www.cs.uchicago.edu/~adrassi]
1712 :    
1713 :     //--------------------------------------------------------------------
1714 :     [2007/02/01]::
1715 :     +
1716 :     Implemented library installer. Moved CM plugin code for
1717 :     *ml-burg*, *ml-lex*, and *ml-yacc* out of CM source tree and into
1718 :     their respective trees. Implemented CM plugin for *ml-ulex*
1719 :     and *ml-antlr*. Used library installer for *ml-burg*, *ml-ulex*,
1720 :     and *ml-antlr*.
1721 :     +
1722 :     For *ml-yacc* and *ml-lex* we continue to have permanently "plugged-in"
1723 :     CM tools. (It turns out to be too messy to do otherwise because
1724 :     there is too much code that during installation relies on the presence
1725 :     of these tools -- resulting in a tricky ordering problem.)
1726 :     +
1727 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1728 :    
1729 :     //--------------------------------------------------------------------
1730 :     [2007/01/30]::
1731 :     +
1732 :     Added +SMLofNJ.shiftArgs+ which is like a shell's "shift" command.
1733 :     Modified CM's startup code to use +shiftArgs+ as it processes
1734 :     command line arguments. This way, the init code in each .sml-file
1735 :     or library that is mentioned at the top level will see only
1736 :     those arguments that have not yet been processed at this point.
1737 :     In other words, the init code can "seize control" and process the
1738 :     remaining command line.
1739 :     +
1740 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1741 :    
1742 :     //--------------------------------------------------------------------
1743 :     [2007/01/30]::
1744 :     +
1745 :     Added fromList function to the +ORD_SET+ interface and lookup to the
1746 :     +ORD_MAP+ interface. See the SML/NJ Library CHANGES file for details.
1747 :     +
1748 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1749 :    
1750 :     //--------------------------------------------------------------------
1751 :     [2007/01/28]::
1752 :     +
1753 :     Added the +UTF8+ structure and signature from the Moby compiler to
1754 :     the SML/NJ library (and the CML library). These modules will replace
1755 :     the version in the ml-lpt-lib.
1756 :     +
1757 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
1758 :    
1759 :     //--------------------------------------------------------------------
1760 :     [2007/01/26]::
1761 :     +
1762 :     Added entries to handle ml-lpt-lib.cm in installer.
1763 :     +
1764 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1765 :    
1766 :     //====================================================================
1767 :     == Version 110.61.1; 2006/12/15
1768 :    
1769 :    
1770 :     //--------------------------------------------------------------------
1771 :     [2006/12/15]::
1772 :     +
1773 :     Fixed brown-paper-bag bug with CM's pathname handling, which made
1774 :     installation fail under *Win32*.
1775 :     +
1776 :     This supersedes the pre-brown-paper-bug release (see below).
1777 :     +
1778 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1779 :    
1780 :     //====================================================================
1781 :     == Version 110.61; 2006/12/14
1782 :    
1783 :    
1784 :     //--------------------------------------------------------------------
1785 :     [2006/14/06]::
1786 :     +
1787 :     Fixed the code in ++runtime/c-libs/posix-tty/++{++tcgetattr++,++tcsetattr++}++.c++ to
1788 :     get the c_cc termios data copied correctly. Also moved the allocation
1789 :     of the string to avoid problems if it caused a GC.
1790 :     +
1791 :     Thanks to Timothy Bourke for the bug report and fix.
1792 :     +
1793 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
1794 :    
1795 :     //--------------------------------------------------------------------
1796 :     [2006/12/08]::
1797 :     +
1798 :     Added code to CM's "standard shell tool" implementation which
1799 :     causes it to tolerate (with a warning) the situation where the shell
1800 :     command fails (_e.g._, due to the shell command's non-existence)
1801 :     as long as all target files exist.
1802 :     +
1803 :     This makes it possible to, _e.g._, build *ml-yacc* from sources even if
1804 :     svn checkout messed up the time stamps on files in such a way that
1805 :     +yacc.grm+ is younger than yacc.grm.sml or +yacc.grm.sig+. (*Ml-yacc*
1806 :     would be needed to re-process +yacc.grm+, but obviously it might not yet be
1807 :     available at that time.)
1808 :     +
1809 :     owner:[Matthias Blume,http://www.tti-c.org/blume]
1810 :    
1811 :     //--------------------------------------------------------------------
1812 :     [2006/12/06]::
1813 :     +
1814 :     Fixed the types of +recvVecFrom+, +recvVecFrom'+, +recvVecFromNB+, and
1815 :     +recvVecFromNB'+ in the +SOCKET+ signature. This error is actually
1816 :     in the _SML Basis_ specification too.
1817 :     +
1818 :     owner:[John Reppy,http://cs.uchicago.edu/~jhr]
1819 :    
1820 :     //--------------------------------------------------------------------
1821 :     [2006/12/05]::
1822 :     +
1823 :     CM now reports undefined anchors as errors and aborts execution
1824 :     rather than silently pressing on using bogus values.
1825 :     +
1826 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1827 :    
1828 :     //--------------------------------------------------------------------
1829 :     [2006/11/29]::
1830 :     +
1831 :     Use +Say.vsay+ for printing the "+[autoloading]+" message, so
1832 :     +#set CM.Control.verbose false+ (or +-Ccm.verbose=false+) can be used
1833 :     to suppress them.
1834 :     +
1835 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1836 :    
1837 :     //--------------------------------------------------------------------
1838 :     [2006/11/10]::
1839 :     +
1840 :     Fixed bug in CM where "+with:+" specifications that affect compilation
1841 :     (as opposed to parsing) were ignored.
1842 :     +
1843 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1844 :    
1845 :     //====================================================================
1846 :     == Version 110.60; 2006/11/09
1847 :    
1848 :    
1849 :     //--------------------------------------------------------------------
1850 :     [2006/11/09]::
1851 :     +
1852 :     This is the first subversion-hosted release. There are also changes
1853 :     to the directory layout. Here is a table:
1854 :     +
1855 :     [grid="none",frame="none",width="80%",cols=">3,^1,<3,<6"]
1856 :     |===========================================================
1857 :     | +config+ | => | +config+ |
1858 :     | | | |
1859 :     | +src/cm+ | => | +base/cm+ |
1860 :     | +src/compiler+ | => | +base/compiler+ |
1861 :     | +src/runtime+ | => | +base/runtime+ |
1862 :     | +src/system+ | => | +base/system+ |
1863 :     | | | |
1864 :     | +src/cm/pgraph+ | => | +pgraph+ |
1865 :     | | | |
1866 :     | +src/READMES+ | => | +base/READMES+ |
1867 : jhr 3995 | ++src/$++__note__ | => | ++base/NOTES/$++__note__
1868 :     | for _note_ in +BOOT+ +CVSNOTES+ +CYGWININSTALL+
1869 : jhr 3992 +HISTORY+ +INSTALL+ +MACOSXINSTALL+ +WININSTALL+
1870 :     | | | |
1871 :     | +src/smlnj-lib+ | => | +smlnj-lib+ |
1872 :     | +src/MLRISC+ | => | +MLRISC+ |
1873 :     | +ckit+ | => | +ckit+ |
1874 :     | +src/cml+ | => | +cml+ |
1875 :     | +src/eXene+ | => | +eXene+ |
1876 :     | +src/heap2asm+ | => | +heap2asm+ |
1877 :     | +src/lexgen+ | => | +lexgen+ |
1878 :     | +src/ml-burg+ | => | +ml-burg+ |
1879 :     | +src/ml-lex+ | => | +ml-lex+ |
1880 :     | +src/ml-yacc+ | => | +ml-yacc+ |
1881 :     | +src/ml-nlffi-lib+ | => | +nlffi/lib+ |
1882 :     | +src/ml-nlffigen+ | => | +nlffi/gen+ |
1883 :     | +src/smlnj-c+ | => | +smlnj-c+ |
1884 :     | +src/tools/TraceDebugProf+ | => | +trace-debug-profile+ |
1885 :     |===========================================================
1886 :     +
1887 :     (All pathnames are relative to the SML/NJ "root" directory.)
1888 :     +
1889 :     In addition, there is also a new
1890 :     +
1891 :     ...........
1892 :     ml-lpt
1893 :     ...........
1894 :     +
1895 :     directory containing two new program generator tools: *ml-ulex* and
1896 :     *ml-antlr* (a lexer generator that handles unicode and an ANTRL-inspired
1897 :     LL(k) parser generator). These tools are currently "beta-quality"
1898 :     +
1899 :     The latest versios of the sources can now be obtained anonymously
1900 :     via subversion. For this, it is useful to first check out
1901 :     +
1902 :     ...........
1903 :     svn://smlnj-gforge.cs.uchicago.edu/smlnj/admin
1904 :     ...........
1905 :     +
1906 :     and put the resulting directory on your shell's PATH. This provides
1907 :     access to three shell scripts: checkout-all.sh, stat-all.sh,
1908 :     and refresh-all.sh.
1909 :     +
1910 :     To create a freshly checked-out copy of the sources, do
1911 :     +
1912 :     ...........
1913 :     checkout-all.sh [dir]
1914 :     ...........
1915 :     +
1916 :     where dir is the optional SML/NJ root directory (default is ".").
1917 :     +
1918 :     This creates the above directory layout. Each subdirectory of
1919 :     the root is under individual subversion control. The stat-all.sh
1920 :     and refresh-al.sh scripts apply "svn stat" or "svn update" to
1921 :     each of these subtrees.
1922 :     +
1923 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
1924 :    
1925 :     //--------------------------------------------------------------------
1926 :     [2006/11/02]::
1927 :     +
1928 :     Reorganized directory layout.
1929 :     +
1930 :     This is a temporary solution, more reorganization is to come.
1931 :     +
1932 :     The basic idea is to have a number of toplevel trees, each corresponding
1933 :     to a well-defined part of the overall system. Each part can be
1934 :     maintained individually, even in separate source repositories,
1935 :     although currently we still serve everything out of the main
1936 :     smlnj-gforge tree.
1937 :     +
1938 :     Installer and and scripts have been updated to reflect the new
1939 :     layout. The installer (base/src/system/smlnj/installer) is now
1940 :     "scriptable" to avoid burning too much knowledge about the
1941 :     layout into SML source code. The main script used by the installer
1942 :     is in config/actions.
1943 :     +
1944 :     The main change is that many of the subdirectories of what used to
1945 :     be known as "src" have moved to the toplevel. The "src" directory
1946 :     itself has moved down into a subtree called "base". (We may eventually
1947 :     get rid of the extra level of indirection represented by "src".)
1948 :     +
1949 :     The layout is now as follows:
1950 :     +
1951 : jhr 4002 [frame="none",width="90%",cols="<2,<3",options="header"]
1952 :     |===========================================================
1953 :     | toplevel tree name | default repository
1954 :     (using +svn://smlnj-gforge.cs.uchicago.edu/smlnj+ for +$gf+)
1955 : jhr 3992 +
1956 : jhr 4002 | +config+ | +$gf/config/trunk+
1957 :     +
1958 :     | +base+ | +$gf/sml/trunk+
1959 :     +
1960 :     | +smlnj-lib+ | +$gf/smlnj-lib/trunk+
1961 :     | +MLRISC+ | +$gf/MLRISC/trunk+
1962 :     +
1963 :     | +ml-yacc+ | +$gf/ml-yacc/trunk+
1964 :     | +ml-lex+ | +$gf/ml-lex/trunk+
1965 :     | +ml-burg+ | +$gf/ml-burg/trunk+
1966 :     | +lexgen+ | +$gf/lexgen/trunk+
1967 :     | +heap2asm+ | +$gf/heap2asm/trunk+
1968 :     +
1969 :     | +cml+ | +$gf/cml/trunk+
1970 :     | +eXene+ | +$gf/eXene/trunk+
1971 :     | +ckit+ | +$gf/ckit/trunk+
1972 :     | +nlffi+ | +$gf/nlffi/trunk+
1973 :     +
1974 :     | +smlnj-c+ | +$gf/smlnj-c/trunk+
1975 :     |===========================================================
1976 :     +
1977 :     In +$gf/admin+ there are a few useful shell scripts for checking out
1978 : jhr 3992 and maintaining the entire collection of trees:
1979 :     +
1980 : jhr 4002 --
1981 :     +admin/checkout-all.sh+ [__dir__]::
1982 : jhr 3992 +
1983 : jhr 4002 optionally creates _dir_ and checks out all trees from their
1984 :     default repositories; if _dir_ is missing, checkout into the
1985 :     current working directory.
1986 :     +
1987 :     +admin/refresh-all.sh+ [__dir__]::
1988 :     looks at all trees (from the above list) in _dir_ (default: .)
1989 :     and runs "+svn update+" if the tree exists and is under
1990 :     subversion control;
1991 :     non-existing or non-subversion trees are skipped
1992 :     +
1993 :     +admin/stat-all.sh+ [__dir__]::
1994 :     like +refresh-all.sh+, but runs "+svn stat+" instead
1995 :     --
1996 :     +
1997 : jhr 3992 owner:[Matthias Blume,http://www.tti-c.org/blume/]
1998 :    
1999 :     //--------------------------------------------------------------------
2000 :     [2006/10/05]::
2001 :     +
2002 :     Merged code for AMD64 backend (Mike Rainey's work).
2003 :     Everything is hooked up but untested.
2004 :     +
2005 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2006 :    
2007 :     //====================================================================
2008 :     == Version 110.59; 2006/05/17
2009 :    
2010 :    
2011 :     //--------------------------------------------------------------------
2012 :     [2006/05/17]::
2013 :     +
2014 :     I am freezing 110.59. Changes other than the version-number increase:
2015 :     +
2016 : jhr 4002 --
2017 :     eXene::
2018 : jhr 3992 +
2019 : jhr 4002 committed changes to eXene from Alley Stoughton:
2020 :     "fixed bugs in X authorization and resource handling, as well
2021 :     as in the pile and viewport widgets"
2022 : jhr 3992 +
2023 : jhr 4002 Runtime::
2024 : jhr 3992 +
2025 : jhr 4002 fixed linking problem with *NetBSD 3.x*.
2026 :     +
2027 :     Lexgen::
2028 :     +
2029 :     --
2030 :     * *lexgen* tool handles non-ascii characters in 7-bit mode the same
2031 : jhr 3992 way that *ml-lex* does
2032 :     +
2033 :     * lexgen propagates exceptions the same way that *ml-lex* does
2034 : jhr 4002 --
2035 : jhr 3992 +
2036 : jhr 4002 CML::
2037 : jhr 3992 +
2038 : jhr 4002 Fixed a bug in the +SyncVar+ polling functions (+iGetPoll+,
2039 :     +mTakePoll+, and +mGetPoll+) that could lead to livelock.
2040 :     --
2041 :     +
2042 : jhr 3992 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2043 :    
2044 :     //--------------------------------------------------------------------
2045 :     [2006/05/12]::
2046 :     +
2047 :     Implemented *ml-makedepend* (_i.e._, CM.sources) in a better (more robust)
2048 :     way. This should hopefully fix the *ml-makedepend* problem permanently.
2049 :     +
2050 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2051 :    
2052 :     //--------------------------------------------------------------------
2053 :     [2006/05/12]::
2054 :     +
2055 :     Fixed long-standing bug with *ml-makedepend* where it would output a
2056 :     spurious dependency to a non-existing file. (This is a simple fix.
2057 :     It might need further looking into.)
2058 :     +
2059 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2060 :    
2061 :     //--------------------------------------------------------------------
2062 :     [2006/04/20]::
2063 :     +
2064 :     Committed patches received from Johannes 5 Joemann (joemann@befree.free.de)
2065 : jhr 4002 that enable *heap2exec* under +Linux+ and +FreeBSD+.
2066 : jhr 3992 +
2067 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2068 :    
2069 :     //--------------------------------------------------------------------
2070 :     [2006/04/14]::
2071 :     +
2072 :     MLRISC changes:
2073 :     +
2074 : jhr 4002 --
2075 :     . renamed +GAS_PSEUDO_OPS+ to +AS_PSEUDO_OPS+ and put it in its own file.
2076 :     . added support for +NOTB+ and +XORB+ operators in pseudo-op expressions
2077 :     . added +DarwinPseudoOp+ functor that supports Darwin's assembler syntax.
2078 :     . added support for 64-bit integer literals
2079 :     --
2080 :     +
2081 : jhr 3995 owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2082 : jhr 3992
2083 :     //====================================================================
2084 :     == Version 110.58; 2006/03/03
2085 :    
2086 :    
2087 :     //--------------------------------------------------------------------
2088 :     [2006/03/01]::
2089 :     +
2090 : jhr 4002 Incorporated several bugfixes to *lexgen*. Compiler now compiles to
2091 : jhr 3992 fixpoint when using lexgen instead of *ml-lex*.
2092 :     +
2093 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2094 :    
2095 :     //--------------------------------------------------------------------
2096 :     [2006/02/28]::
2097 :     +
2098 : jhr 4002 Removed *ml-flex* and added *lexgen* instead, using Aaron Turon's newly
2099 : jhr 3992 provided tarball. The generated lexers still have problems.
2100 :     +
2101 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2102 :    
2103 :     //--------------------------------------------------------------------
2104 :     [2006/02/26]::
2105 :     +
2106 : jhr 4002 Removed *ml-flex*'s dependency on *regexp-lib.cm*. Turned installation
2107 :     of *ml-flex* on by default.
2108 : jhr 3992 +
2109 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2110 :    
2111 :     //--------------------------------------------------------------------
2112 :     [2006/02/24]::
2113 :     +
2114 : jhr 4002 Added *ml-flex* sources. Partially integrated, but should not be
2115 :     turned on yet! (Read: leave it commented-out in ++config/targets++!)
2116 : jhr 3992 +
2117 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2118 :    
2119 :     //--------------------------------------------------------------------
2120 :     [2006/02/23]::
2121 :     +
2122 : jhr 4002 Changes to support building on *x86-64* systems (using the 32-bit mode).
2123 :     Also cleaned up signal handling on *Linux*. Support for pre-2.2 *Linux*
2124 : jhr 3992 kernels dropped.
2125 :     +
2126 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2127 :    
2128 :     //--------------------------------------------------------------------
2129 :     [2006/02/22]::
2130 :     +
2131 : jhr 4002 *CM* has changed. Updated the script for rebuilding the *MLRISC* generated
2132 : jhr 3992 files.
2133 :     +
2134 :     owner:[Allen Leung]
2135 :    
2136 :     //--------------------------------------------------------------------
2137 :     [2006/02/14]::
2138 :     +
2139 :     Hooked code for Darwin-specific Intel ABI into main compiler.
2140 :     (This is a temporary solution which relies on the fact that the
2141 :     compiler itself does not use NLFFI. Eventually we need to divorce
2142 :     intel mac from generic x86 unix code and make separate sets of binaries.)
2143 :     +
2144 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2145 :    
2146 :     //--------------------------------------------------------------------
2147 :     [2006/02/13]::
2148 :     +
2149 : jhr 4002 Changed *MLRISC* x86 +CCalls+ for partial support of *Mac OS X* ABI.
2150 : jhr 3992 +
2151 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2152 :    
2153 :     //--------------------------------------------------------------------
2154 :     [2006/02/06]::
2155 :     +
2156 : jhr 4002 Changes to support *Mac OS X* on Intel hardware. The C-calls support in
2157 :     MLRISC must also be updated to support the *Mac OS X* ABI.
2158 : jhr 3992 +
2159 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2160 :    
2161 :     //--------------------------------------------------------------------
2162 :     [2005/12/16]::
2163 :     +
2164 : jhr 4002 Improved error reporting and handling in *CM*.
2165 : jhr 3992 +
2166 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2167 :    
2168 :     //--------------------------------------------------------------------
2169 :     [2005/11/21]::
2170 :     +
2171 : jhr 4002 Enabling +$/html-lib.cm+ in +config/preloads+ did not work. This is fixed
2172 :     now. (Since the anchor mapping for +html-lib.cm+ is not yet in effect
2173 :     at the time when +config/preloads+ is processed, the library has to
2174 : jhr 3992 be referred to by another name. In 110.57 this would be
2175 : jhr 4002 +$SMLNJ-LIB/HTML/html-lib.cm+. I arranged for +$smlnj/smlnj-lib/html-lib.cm+
2176 : jhr 3992 to be valid as well.)
2177 :     +
2178 :     Thanks to Todd Wilson (Fresno) for alerting me to this issue.
2179 :     +
2180 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2181 :    
2182 :     //====================================================================
2183 :     == Version 110.57; 2005/11/19
2184 :    
2185 :    
2186 :     //--------------------------------------------------------------------
2187 :     [2005/11/19]::
2188 :     +
2189 : jhr 4002 Fixed a problem in +config/install.sh+ where it tries to "fish" the
2190 :     name of the *CM* metadata directory from the wrong place (because
2191 :     the physical location of +basis.cm+ has changed). Also, corrected the
2192 :     path anchor for +$/html-lib.cm+. (Thanks to M. Fluet for pointing out
2193 : jhr 3992 these problems.)
2194 :     +
2195 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2196 :    
2197 :     //====================================================================
2198 :     == Version 110.57; 2005/11/16
2199 :    
2200 :    
2201 :     //--------------------------------------------------------------------
2202 :     [2005/11/16]::
2203 :     +
2204 :     Fixed problem with bogus exception message when using back-trace
2205 :     facility.
2206 :     +
2207 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2208 :    
2209 :     //--------------------------------------------------------------------
2210 :     [2005/11/15]::
2211 :     +
2212 : jhr 4002 Added simple implementation of +Array2.copy+. (Warning: mostly untested.)
2213 : jhr 3992 +
2214 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2215 :    
2216 :     //--------------------------------------------------------------------
2217 :     [2005/11/15]::
2218 :     +
2219 : jhr 4002 Reversed change to +src/system/smlnj/internals/versiontool.cm+. This
2220 : jhr 3992 file gets loaded as a tool -- by the equivalent of CM.make during the
2221 : jhr 4002 run of +CMB.make+. Thus, CMB's path configuration is meaningless for
2222 : jhr 3992 it. Instead, it has the status of "user code", so it should use
2223 : jhr 4002 +$/basis.cm+ to refer to the Basis library. (At least that's true for
2224 : jhr 3992 the purpose of bootstrapping the previous change. In the future it
2225 : jhr 4002 might make sense to have +versiontool.cm+ refer to
2226 :     +$smlnj/basis/basis.cm+, _i.e._, the version of the Basis that the
2227 : jhr 3992 compiler itself uses.)
2228 :     +
2229 : jhr 4002 Also patched +src/system/testml+ to have it activate those extra anchor
2230 :     bindings in +config/extrapathconfig+.
2231 : jhr 3992 +
2232 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2233 :    
2234 :     //--------------------------------------------------------------------
2235 :     [2005/11/15]::
2236 :     +
2237 :     This change affects the way the following libraries are tied into
2238 :     the system:
2239 :     +
2240 : jhr 4002 ....................
2241 : jhr 3992 $/basis.cm
2242 :     $/smlnj-lib.cm
2243 :     $/pp-lib.cm
2244 :     $/controls-lib.cm
2245 :     $/html-lib.cm
2246 :     $/ml-yacc-lib.cm
2247 : jhr 4002 ....................
2248 : jhr 3992 +
2249 :     These libraries are now internally (as seen from the source code
2250 :     of the implementation itself) known by the following names:
2251 :     +
2252 : jhr 4002 ....................
2253 : jhr 3992 $smlnj/basis/basis.cm
2254 :     $smlnj/smlnj-lib/smlnj-lib.cm
2255 :     $smlnj/smlnj-lib/pp-lib.cm
2256 :     $smlnj/smlnj-lib/controls-lib.cm
2257 :     $smlnj/smlnj-lib/html-lib.cm
2258 :     $smlnj/ml-yacc/ml-yacc-lib.cm
2259 : jhr 4002 ....................
2260 : jhr 3992 +
2261 :     This makes it possible to work with code that requires different
2262 :     versions of these libraries, and which refers to these libraries using
2263 :     their "default" names (_i.e._, the first set of names above). In other
2264 :     words, one can un-define or re-define those default names without
2265 :     compromising the proper functioning of the compiler itself.
2266 :     +
2267 :     A similar procedure had already been performed for several of the
2268 : jhr 4002 *MLRISC* libraries that are linked into the compiler. I did some
2269 : jhr 3992 cleanup on this code.
2270 :     +
2271 :     A new file in the config directory (named extrapathconfig) is
2272 :     responsible for setting up path anchors that the compiler itself does
2273 :     not need, but that are typically required by user code.
2274 :     +
2275 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2276 :    
2277 :     //--------------------------------------------------------------------
2278 :     [2005/11/07]::
2279 :     +
2280 : jhr 4002 Fixed erroneous out-of-bounds test in the "+update+" function of
2281 :     various *++ArraySlice++ modules. (Thanks to Vesa A. Norrman for pointing
2282 : jhr 3992 out the problem.)
2283 :     +
2284 :     Pushed some Basis changes through ML-Lex, CML, and eXene.
2285 :     +
2286 :     owner:[Matthias Blume]
2287 :    
2288 :     //--------------------------------------------------------------------
2289 :     [2005/11/07]::
2290 :     +
2291 : jhr 4002 Fixed a Basis incompatibility: The depreciated function +Substring.all+
2292 :     was removed (use +Substring.full+ instead).
2293 : jhr 3992 +
2294 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2295 :    
2296 :     //--------------------------------------------------------------------
2297 :     [2005/11/05]::
2298 :     +
2299 :     Tweaked interval set API in SML/NJ library; see the CHANGES file for details.
2300 :     +
2301 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2302 :    
2303 :     //--------------------------------------------------------------------
2304 :     [2005/11/02]::
2305 :     +
2306 : jhr 4002 --
2307 : jhr 3992 * Runtime system bootstrap code now accepts hex digits in BOOTLIST
2308 :     in either upper case or lower case format.
2309 : jhr 4002 * Pushed changes to names of ++Pack++<__N__>{++Big++,++Little++}
2310 :     structures through
2311 : jhr 3992 CML and eXene.
2312 : jhr 4002 --
2313 : jhr 3992 +
2314 :     owner:[Matthias Blume,http://www.tti-c.org/blume/]
2315 :    
2316 :     //--------------------------------------------------------------------
2317 :     [2005/11/02]::
2318 :     +
2319 : jhr 4002 Fixed a Basis incompatibility: ++Pack++<__N__>{++Big++,++Little++}
2320 :     structures should be named ++PackWord++<__N__>{++Big++,++Little++}.
2321 : jhr 3992 +
2322 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2323 :    
2324 :     //--------------------------------------------------------------------
2325 :     [2005/10/28]::
2326 :     +
2327 :     Fixed a minor Basis incompatibility: hex digits should be upper case.
2328 :     +
2329 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2330 :    
2331 :     //====================================================================
2332 :     == Version 110.56; 2005/10/25
2333 :    
2334 :    
2335 :     //--------------------------------------------------------------------
2336 :     [2005/10/25]::
2337 :     +
2338 : jhr 4002 Added interval sets to utility library (signatures +INTERVAL_DOMAIN+
2339 :     and +INTERVAL_SET+, and functor +IntervalSetFn+).
2340 : jhr 3992 +
2341 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2342 :    
2343 :     //--------------------------------------------------------------------
2344 :     [2005/10/14]::
2345 :     +
2346 :     Add Zhong Shao's fix for datatype equality functions.
2347 :     +
2348 :     owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2349 :    
2350 :     //--------------------------------------------------------------------
2351 :     [2005/10/14]::
2352 :     +
2353 :     Bug fix a bug found by Carl Hauser.
2354 : jhr 4002 There was a typo in the reload code for +FCMP+ in +x86SpillInstr.sml+.
2355 : jhr 3992 +
2356 :     owner:[Allen Leung]
2357 :    
2358 :     //--------------------------------------------------------------------
2359 :     [2005/10/14]::
2360 :     +
2361 : jhr 4002 Removed some debugging code in file +x86Asm.sml+.
2362 : jhr 3992 The function emit_operand was printing out debugging output.
2363 :     +
2364 :     owner:[Allen Leung]
2365 :    
2366 :     //--------------------------------------------------------------------
2367 :     [2005/07/27]::
2368 :     +
2369 : jhr 4002 Fixed *ml-lex* to recognize "+\r+" as representing carriage return.
2370 : jhr 3992 +
2371 : jhr 3995 owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2372 : jhr 3992
2373 :     //--------------------------------------------------------------------
2374 :     [2005/07/27]::
2375 :     +
2376 :     Fixed *ml-yacc* to work on files with non-native end-of-line
2377 :     encodings (_e.g._, Windows text file on a Unix system).
2378 :     +
2379 : jhr 3995 owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2380 : jhr 3992
2381 :     //--------------------------------------------------------------------
2382 :     [2005/07/20]::
2383 :     +
2384 :     Added changes from Dominic Evans (oldmanuk (at) gmail (dot) com)
2385 : jhr 4002 to support *HPUX 11*.
2386 : jhr 3992 +
2387 : jhr 3995 owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2388 : jhr 3992
2389 :     //--------------------------------------------------------------------
2390 :     [2005/07/06]::
2391 :     +
2392 : jhr 4002 Changes to the *SML/NJ Library*. See smlnj-lib/CHANGES for details.
2393 : jhr 3992 +
2394 : jhr 3995 owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
2395 : jhr 3992
2396 :     //--------------------------------------------------------------------
2397 :     [2005/07/06]::
2398 :     +
2399 :     Fixed reversed logic for deciding whether to "copy up" or "copy down"
2400 : jhr 4002 in *++-array-slice.sml++.
2401 : jhr 3992 +
2402 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2403 : jhr 3992
2404 :     //--------------------------------------------------------------------
2405 :     [2005/05/31]::
2406 :     +
2407 : jhr 4002 A typo in the Cygwin code fixed.
2408 : jhr 3992 +
2409 :     owner:[Allen Leung]
2410 :    
2411 :     //--------------------------------------------------------------------
2412 :     [2005/05/31]::
2413 :     +
2414 :     Updated Cygwin's fault/signal handling to match the Windows version.
2415 :     Updated the export list.
2416 :     +
2417 :     owner:[Allen Leung]
2418 :    
2419 :     //====================================================================
2420 :     == Version 110.54; 2005/05/18
2421 :    
2422 :    
2423 :     //--------------------------------------------------------------------
2424 :     [2005/05/18]::
2425 :     +
2426 : jhr 4002 Added support scripts for *Mac OS X PackageMaker* and modified
2427 :     +config/install.sh+ so that it supports re-dumping a heap image
2428 : jhr 3992 after customization.
2429 :     +
2430 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2431 : jhr 3992
2432 :     //--------------------------------------------------------------------
2433 :     [2005/05/18]::
2434 :     +
2435 :     Un-overloaded / to work around bug in overloading resolution code.
2436 :     +
2437 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2438 : jhr 3992
2439 :     //--------------------------------------------------------------------
2440 :     [2005/05/16]::
2441 :     +
2442 :     Added mechanism for re-creating a heap file for the interactive system
2443 :     after configuration variables have been changed.
2444 :     +
2445 : jhr 4002 [source,sml]
2446 :     ------------
2447 : jhr 3992 CM.redump_heap : string -> unit
2448 : jhr 4002 ------------
2449 : jhr 3992 +
2450 : jhr 4002 This is much like +SMLofNJ.exportML+, but starting from the resulting
2451 :     heap does not return to the caller of +CM.redump_heap+ but
2452 : jhr 3992 restarts the interactive system from scratch. The original call of
2453 : jhr 4002 +CM.redump_heap+ does not return but ends the interactive session.
2454 :     Thus, +CM.redump_heap+ is a lot like +SMLofNJ.exportFn+.
2455 : jhr 3992 +
2456 : jhr 4002 Internally, +redump_heap+ winds the dynamic execution context back to
2457 : jhr 3992 the point where the original heap image was created and re-executes
2458 :     the heap image generation code in the boot code.
2459 :     +
2460 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2461 : jhr 3992
2462 :     //--------------------------------------------------------------------
2463 :     [2005/05/09]::
2464 :     +
2465 : jhr 4002 Added a hack to the existing hack known as +Word64+ to make +fromString+
2466 :     behave correctly. I am still not sure whether +Word64.scan+ will work
2467 : jhr 3992 as specified with respect to the interaction of radix and prefix.
2468 :     +
2469 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2470 : jhr 3992
2471 :     //--------------------------------------------------------------------
2472 :     [2005/05/04]::
2473 :     +
2474 :     Added a gc protocol checking phase. This phase is enabled with
2475 :     the flag "check-gc". "debug-check-gc" turns on the verbose mode.
2476 :     +
2477 :     owner:[Allen Leung]
2478 :    
2479 :     //--------------------------------------------------------------------
2480 :     [2005/05/04]::
2481 :     +
2482 : jhr 4002 Fixed a bug in the implementation of +div+ and +mod+ for +IntInf+.
2483 : jhr 3992 Thanks to Neophytos Michael for reporting the problem.
2484 :     +
2485 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2486 : jhr 3992
2487 :     //--------------------------------------------------------------------
2488 :     [2005/05/04]::
2489 :     +
2490 : jhr 4002 Added the +join+ combinator to the +ParserComb+ module in the
2491 :     *SML/NJ Library*.
2492 : jhr 3992 +
2493 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2494 : jhr 3992
2495 :     //--------------------------------------------------------------------
2496 :     [2005/02/28]::
2497 :     +
2498 :     Fixed serious bug (brown paper bag variety) in new implementation of
2499 : jhr 4002 structure +Atom+ in *CML*. (I had accidentally used a +mailbox+ instead of
2500 :     an +mvar+, leaving the door open for races.)
2501 : jhr 3992 +
2502 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2503 : jhr 3992
2504 :     //====================================================================
2505 :     == Version 110.53; 2005/02/25
2506 :    
2507 :    
2508 :     //--------------------------------------------------------------------
2509 :     [2005/02/25]::
2510 :     +
2511 : jhr 4002 Brought back +SMLofNJ.Susp+. The underlying suspension type is the one
2512 :     implemented in Core, which means that it is the same as the one used
2513 : jhr 3992 by the lazy extension.
2514 :     +
2515 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2516 : jhr 3992
2517 :     //--------------------------------------------------------------------
2518 :     [2005/02/24]::
2519 :     +
2520 :     Simpler and at the same time more general implementation of structure
2521 : jhr 4002 +Atom+ in *CML*.
2522 : jhr 3992 +
2523 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2524 : jhr 3992
2525 :     //--------------------------------------------------------------------
2526 :     [2005/02/15]::
2527 :     +
2528 : jhr 4002 Created new "+tools+" directory under "+src+" and moved "+TraceDebugProf+"
2529 : jhr 3992 there.
2530 :     +
2531 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2532 : jhr 3992
2533 :     //--------------------------------------------------------------------
2534 :     [2005/02/10]::
2535 :     +
2536 : jhr 4002 Implemented "+long long+" arguments and results for NLFFI. (Only the
2537 : jhr 3992 PPC/MacOS implementation is complete, the other backends still need to
2538 :     be updated.)
2539 :     +
2540 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2541 : jhr 3992
2542 :     //--------------------------------------------------------------------
2543 :     [2005/01/24]::
2544 :     +
2545 :     Minor cleanup in ML-Yacc rule printing mechanism. This should fix a
2546 :     problem with certain "as" patterns which previously got rendered
2547 :     using incorrect syntax.
2548 :     +
2549 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2550 : jhr 3992
2551 :     //--------------------------------------------------------------------
2552 :     [2005/01/18]::
2553 :     +
2554 :     Made time profiling code (interrupt handler) in runtime system aware
2555 :     of new array representation.
2556 :     +
2557 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2558 : jhr 3992
2559 :     //--------------------------------------------------------------------
2560 :     [2005/01/14]::
2561 :     +
2562 : jhr 4002 Implemented new (but still experimental) *heap2exec* facility. This is
2563 : jhr 3992 tested under Mac OS X and should work under Linux (will test shortly).
2564 :     It will probably also work on the Sparc (will test some time later).
2565 : jhr 4002 Also removed old "+HACKED_STANDALONE+" hack from runtime
2566 : jhr 3992 +
2567 : jhr 4002 To be able to test *heap2exec*, uncomment the request for "+heap2asm+" in
2568 : jhr 3992 config/targets prior to installation. (Notice that this is different
2569 :     from "heap2exec" mentioned below. Not a typo.)
2570 :     +
2571 :     To perform an actual test, run the command
2572 :     +
2573 :     $ bin/heap2exec heapfile execfile
2574 :     +
2575 : jhr 4002 (You can put *heap2exec* on your shell's path.)
2576 : jhr 3992 +
2577 :     For example, run
2578 :     +
2579 :     $ bin/heap2exec bin/.heap/ml-yacc.ppc-darwin mly
2580 :     +
2581 : jhr 4002 This will create a standalone executable called "+mly+" that you can
2582 : jhr 3992 then invoke directly as a command.
2583 :     +
2584 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2585 : jhr 3992
2586 :     //--------------------------------------------------------------------
2587 :     [2005/01/07]::
2588 :     +
2589 : jhr 4002 fixed off-by-one error in +ML_STRING+ macro (+globals.c+)
2590 : jhr 3992 +
2591 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2592 : jhr 3992
2593 :     //--------------------------------------------------------------------
2594 :     [2004/12/23]::
2595 :     +
2596 :     Made *ml-build* script "smarter" (but only very little).
2597 :     +
2598 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2599 : jhr 3992
2600 :     //--------------------------------------------------------------------
2601 :     [2004/12/21]::
2602 :     +
2603 : jhr 4002 * Implemented access to signed and unsigned long long data in *NLFFI*.
2604 : jhr 3992 (The parameter-passing part of the picture has not complete. But
2605 :     data structure access seems to work.)
2606 :     +
2607 : jhr 4002 * Fixed *CM*'s incorrect assumption that the PPC is little-endian.
2608 : jhr 3992 (On the Mac, it is big-endian. And that's currently our only
2609 : jhr 4002 *PPC* platform.)
2610 : jhr 3992 +
2611 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2612 : jhr 3992
2613 :     //--------------------------------------------------------------------
2614 :     [2004/12/21]::
2615 :     +
2616 : jhr 4002 Some cleanup in the +$c/memory.cm+ library: separated some concerns by
2617 : jhr 3992 moving allocation code and memory access code each into their own
2618 :     files.
2619 :     +
2620 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2621 : jhr 3992
2622 :     //--------------------------------------------------------------------
2623 :     [2004/12/17]::
2624 :     +
2625 : jhr 4002 The Unix I/O library of SML/NJ on Cygwin does not understand
2626 : jhr 3992 Windows style pathname, so problems arise when +SMLNJ_HOME+ is set
2627 : jhr 4002 to a Windows style pathname. The _run-sml script now
2628 :     converts +SMLNJ_HOME+ to a POSIX pathname on Cygwin.
2629 : jhr 3992 +
2630 :     owner:[Allen Leung]
2631 :    
2632 :     //--------------------------------------------------------------------
2633 :     [2004/12/16]::
2634 :     +
2635 :     Last-minute changes incorporated into 110.52. Release tag moved.
2636 :     +
2637 :     The changes:
2638 : jhr 4002 - +HashString.hashString'+ -> +HashString.hashSubstring+
2639 :     - bug fix in +UnivariateStats+
2640 : jhr 3992 +
2641 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2642 : jhr 3992
2643 :     //--------------------------------------------------------------------
2644 :     [2004/12/15]::
2645 :     +
2646 : jhr 4002 - +HashString.hashString' -> HashString.hashSubstring
2647 :     - corresponding changes in +atom.sml+
2648 :     - "de-compressed" (aka. un-obfuscated) code for +UnivariateStats+ and
2649 : jhr 3992 added some comments
2650 :     +
2651 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2652 : jhr 3992
2653 :     //====================================================================
2654 :     == Version 110.52; 2004/12/15
2655 :    
2656 :    
2657 :     //--------------------------------------------------------------------
2658 :     [2004/12/15]::
2659 :     +
2660 :     More on the space problem (this time for *Win32*).
2661 :     +
2662 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2663 : jhr 3992
2664 :     //--------------------------------------------------------------------
2665 :     [2004/12/14]::
2666 :     +
2667 :     Hacked some of the scripts (in particular: the installer) to cope with
2668 :     spaces in filenames a bit better. But beware: the current "solution"
2669 :     is likely still full of bugs and inherently incomplete. (We need to
2670 :     do away with those shell scripts for a comprehensive solution.)
2671 :     +
2672 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2673 : jhr 3992
2674 :     //--------------------------------------------------------------------
2675 :     [2004/12/13]::
2676 :     +
2677 :     Fixed bug in code for *ml-makedepend*.
2678 :     +
2679 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2680 : jhr 3992
2681 :     //--------------------------------------------------------------------
2682 :     [2004/12/09]::
2683 :     +
2684 :     Added two simple but potentially useful statistics modules to SML/NJ Library.
2685 :     (See CHANGES file there.)
2686 :     +
2687 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2688 : jhr 3992
2689 :     //--------------------------------------------------------------------
2690 :     [2004/12/01]::
2691 :     +
2692 : jhr 4002 Updates to *SML/NJ Library*
2693 : jhr 3992 +
2694 : jhr 4002 --
2695 :     * Added function +HashString.hashString'+ for substrings.
2696 :     * Hand-inlined +CharVector.foldl+ into +HashString+ (for speed).
2697 :     * Modified implementation of structure +Atom+ to avoid extracting
2698 :     strings from substrings unless necessary.
2699 :     --
2700 : jhr 3992 +
2701 : jhr 4002 (Also see CHANGES file for smlnj-lib.)
2702 :     +
2703 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2704 : jhr 3992
2705 :     //--------------------------------------------------------------------
2706 :     [2004/11/24]::
2707 :     +
2708 : jhr 4002 Made sure *CML* compiles when the +Position+ structure is +Int64+.
2709 : jhr 3992 +
2710 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2711 : jhr 3992
2712 :     //--------------------------------------------------------------------
2713 :     [2004/11/24]::
2714 :     +
2715 : jhr 4002 The compiler can now be compiled in a mode that makes structure +Position+
2716 :     equal to +Int64+. The default, however, is unchanged (+Position+ is +Int31+)
2717 : jhr 3992 for the time being.
2718 :     +
2719 :     To enable 64-bit positions, use the following procedure:
2720 :     +
2721 : jhr 4002 --
2722 :     . Start sml
2723 :     . Autoload $smlnj/cmb.cm (if not already autoloaded)
2724 :     . Type
2725 : jhr 3992 +
2726 : jhr 4002 [source,sml]
2727 :     ------------
2728 :     #set (CMB.symval "USE_64_BIT_POSITIONS") (SOME 1);
2729 :     ------------
2730 :     +
2731 :     . Run +CMB.make()+ as usual.
2732 :     --
2733 :     +
2734 : jhr 3992 This is barely tested. The only test so far was a little SML program
2735 :     counting the number of characters in an 8-gigabyte file by
2736 :     reading it character-by-character. That test was successful.
2737 :     +
2738 :     In support of 64-bit positions, a number of new functions have been
2739 :     added to the runtime system.
2740 :     +
2741 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2742 : jhr 3992
2743 :     //--------------------------------------------------------------------
2744 :     [2004/11/23]::
2745 :     +
2746 :     Fixed a problem with unhelpful error messages related to problems with
2747 : jhr 4002 +.cm+ or +.sml+ files that appear as part of the *sml* command line.
2748 : jhr 3992 +
2749 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2750 : jhr 3992
2751 :     //====================================================================
2752 :     == Version 110.51; 2004/11/18
2753 :    
2754 :    
2755 :     //--------------------------------------------------------------------
2756 :     [2004/11/18]::
2757 :     +
2758 : jhr 3995 Enabled +dlopen+ and friends for *FreeBSD* (as recommended by Johannes 5
2759 : jhr 3992 Joemann).
2760 :     +
2761 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2762 : jhr 3992
2763 :     //--------------------------------------------------------------------
2764 :     [2004/11/17]::
2765 :     +
2766 : jhr 3995 Added support for +MLTree+ constructs +LIVE+ and +KILL+
2767 : jhr 3992 to all the architectures.
2768 :     +
2769 :     owner:[Allen Leung]
2770 :    
2771 :     //--------------------------------------------------------------------
2772 :     [2004/11/13]::
2773 :     +
2774 : jhr 3995 - Stripped down the +versiontool:+ It now only handles the version number.
2775 : jhr 3992 The date string is generated at bootstrap time (during makeml).
2776 :     +
2777 :     - In a previous commit, fixed a minor issue with how polyequal is being
2778 :     translated. In particular, the code now "looks through" abstractions.
2779 :     This results in slightly fewer polyEqual warnings and hopefully slightly
2780 :     more efficient code. Important examples for where this matters are
2781 : jhr 3995 the new +int64+ and +word64+ types.
2782 : jhr 3992 +
2783 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2784 : jhr 3992
2785 :     //--------------------------------------------------------------------
2786 :     [2004/11/12]::
2787 :     +
2788 : jhr 3995 Structure +Int64+ fully hooked in. (The implementation is not very
2789 : jhr 3992 efficient, though.)
2790 :     +
2791 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2792 : jhr 3992
2793 :     //--------------------------------------------------------------------
2794 :     [2004/11/11]::
2795 :     +
2796 : jhr 3995 All the pieces of +Word64+ are now there, with the exception of the
2797 :     conversions from and to +LargeWord+. (Eventually these need to be identities,
2798 :     but for the time being they don't even make sense because +LargeWord+ is
2799 : jhr 3992 32-bit wide.)
2800 :     +
2801 : jhr 3995 Also started to add similar support for +Int64+, but major pieces of that
2802 : jhr 3992 are still missing.
2803 :     +
2804 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2805 : jhr 3992
2806 :     //--------------------------------------------------------------------
2807 :     [2004/11/11]::
2808 :     +
2809 : jhr 3995 Structure +Word64+ is now (almost) complete, word literals and patterns
2810 : jhr 3992 seem to work. There are a few odd pieces missing. In particular,
2811 : jhr 3995 I didn't do the {++from++,++to++}++LargeWord++ parts because +LargeWord+
2812 :     is still +Word32+ at the moment.
2813 : jhr 3992 +
2814 : jhr 3995 Making +Word64+ official would mean that +LargeWord+ becomes +Word64+. But
2815 : jhr 3992 this requires extreme care because most word-word conversions have to
2816 : jhr 3995 go through +LargeWord+, so making a mistake means loss of efficiency or
2817 : jhr 3992 worse. Eventually there will be a solution similar to (but actually
2818 : jhr 3995 simpler than) what I did with +IntInf+.
2819 : jhr 3992 +
2820 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2821 : jhr 3992
2822 :     //--------------------------------------------------------------------
2823 :     [2004/11/10]::
2824 :     +
2825 :     More 64-bit hacking (but still not even half-way there yet).
2826 :     Also, some assorted improvements to the handling of 8-bit words.
2827 :     +
2828 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2829 : jhr 3992
2830 :     //--------------------------------------------------------------------
2831 :     [2004/11/09]::
2832 :     +
2833 :     Started adding some infrastructure for supporting 64-bit int- and
2834 :     word-types. (Still in its very early stages.)
2835 :     +
2836 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2837 : jhr 3992
2838 :     //====================================================================
2839 :     == Version 110.50; 2004/10/28
2840 :    
2841 :    
2842 :     //--------------------------------------------------------------------
2843 :     [2004/10/28]::
2844 :     +
2845 :     - Changend config/srcarchiveurl from a file just
2846 :     containing the URL string into a file containing
2847 :     shell script code. The code has access to the $VERSION variable.
2848 :     - Made corresponding changes to config/install.sh and config/unpack.
2849 :     - Default contents of config/srcarchiveurl uses $VERSION and
2850 :     normally does not have to be edited to reflect a version change.
2851 :     +
2852 : jhr 4002 (As a result, a version change can be done by just editing
2853 :     +config/version+, the rest is now automatic.)
2854 : jhr 3992 +
2855 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2856 : jhr 3992
2857 :     //--------------------------------------------------------------------
2858 :     [2004/10/27]::
2859 :     +
2860 :     BackTrace.monitor now also reports the source of the exception that
2861 :     triggered the trace.
2862 :     +
2863 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2864 : jhr 3992
2865 :     //--------------------------------------------------------------------
2866 :     [2004/10/27]::
2867 :     +
2868 :     This is the HISTORY entry for two earlier commits, both concerning
2869 : jhr 4002 the *x86* c-calls code in *MLRISC*:
2870 : jhr 3992 +
2871 :     - added a missing LOAD in the code that deals with struct arguments
2872 :     - made sure the caller does not add the wrong number of bytes to the
2873 :     stack pointer after a call of a function returning a struct
2874 :     (the callee already pops the implicit argument which points to
2875 :     the space reserved for the result)
2876 :     +
2877 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2878 : jhr 3992
2879 :     //--------------------------------------------------------------------
2880 :     [2004/10/24]::
2881 :     +
2882 : jhr 4002 John discovered a bug in the syntax of +fucomip+.
2883 :     The opcodes ++FU++?++COMIP++? have been changed to
2884 : jhr 3992 +
2885 :     fu?comip? %st(i), %st
2886 :     +
2887 :     owner:[Allen Leung]
2888 :    
2889 :     //--------------------------------------------------------------------
2890 :     [2004/10/20]::
2891 :     +
2892 :     Added a mechanism for getting back-trace information from standalone
2893 :     programs. Here is how it works:
2894 :     +
2895 : jhr 4002 --
2896 :     . The part of the program from which you want to get backtrace
2897 :     information (usually the whole program) should be wrapped with
2898 :     BackTrace.monitor. This is a +(unit->'a)->'a+ function, and your
2899 :     main program could be modified from something like
2900 : jhr 3992 +
2901 : jhr 4002 [source,sml]
2902 :     ------------
2903 :     fun main (pgm, args) = ...
2904 :     ------------
2905 : jhr 3992 +
2906 : jhr 4002 to
2907 : jhr 3992 +
2908 : jhr 4002 [source,sml]
2909 :     ------------
2910 :     fun main (pgm, args) = BackTrace.monitor (fn () => ...)
2911 :     ------------
2912 : jhr 3992 +
2913 : jhr 4002 . To be able to access +BackTrace.monitor+, you have to add the
2914 :     library +$smlnj-tdp/plugins.cm+ to the +.cm+ file that contains your
2915 :     main function.
2916 : jhr 3992 +
2917 : jhr 4002 . Remove all compiled code (_i.e._, all the .cm/ subdirectories that
2918 :     *CM* might have created in the past for your project).
2919 : jhr 3992 +
2920 : jhr 4002 . Build the system using this command line:
2921 : jhr 3992 +
2922 : jhr 4002 [source,sh]
2923 :     ------------
2924 :     ml-build -Ctdp.instrument=true \$smlnj-tdp/back-trace.cm myprog.cm MyProg.main myprog
2925 :     ------------
2926 : jhr 3992 +
2927 : jhr 4002 instead of the usual
2928 : jhr 3992 +
2929 : jhr 4002 [source,sh]
2930 :     ------------
2931 :     ml-build myprog.cm MyProg.main myprog
2932 :     ------------
2933 :     --
2934 : jhr 3992 +
2935 : jhr 4002 I changed the library name +$/trace-debug-profile.cm+ to +$smlnj-tdp/plugins.cm+,
2936 :     and added the following new libraries:
2937 : jhr 3992 +
2938 : jhr 4002 --
2939 :     +$smlnj-tdp/back-trace.cm+::
2940 : jhr 3992 +
2941 : jhr 4002 when loaded causes the back-trace plugin to be installed
2942 : jhr 3992 +
2943 : jhr 4002 +$smlnj-tdp/coverage.cm+::
2944 : jhr 3992 +
2945 : jhr 4002 when loaded causes the coverage plugin to be installed
2946 :     --
2947 :     +
2948 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2949 : jhr 3992
2950 :     //--------------------------------------------------------------------
2951 :     [2004/10/18]::
2952 :     +
2953 : jhr 4002 Added an "obsolete" warning for the "group owner" syntax to *CM*'s parser.
2954 : jhr 3992 +
2955 : jhr 4002 Eliminated group owner specs from +.cm+ files throughout the source tree.
2956 : jhr 3992 +
2957 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2958 : jhr 3992
2959 :     //--------------------------------------------------------------------
2960 :     [2004/10/15]::
2961 :     +
2962 : jhr 4002 --
2963 : jhr 3992 * Test coverage tool added!
2964 :     * Further reorganization of tracing-, debugging-, and profiling support:
2965 :     +
2966 :     - moved original BTImp -- now called BackTrace -- into a separate
2967 :     library called $/trace-debug-profile.cm
2968 :     - eliminated all mentions of BTrace from SMLofNJ.Internals
2969 :     - only the instrumentation mechanism is now left in the compiler proper
2970 :     - BackTrace module is a plugin which is NOT plugged in by default
2971 :     - Coverage module is another such plugin
2972 : jhr 4002 --
2973 : jhr 3992 +
2974 :     To get the benefits of any of these plugin modules, the code in
2975 : jhr 4002 question must be compiled with TDP instrumentation turned on. This
2976 :     can be done by setting +SMLofNJ.Internals.TDP.mode+ to +true+.
2977 :     (The ref cell is also controlled via the +-Ctdp.instrument=...+ switch.)
2978 : jhr 3992 +
2979 :     Plugins are selected at link time. (Pre-compiled instrumented code
2980 :     can be re-loaded with different plugins in effect.) When an
2981 :     instrumented module is linked, whatever plugins are at that time
2982 :     enabled will come into effect for that module.
2983 :     +
2984 : jhr 4002 To enable the back-trace plugin, load library +$/trace-debug-profile.cm+
2985 :     and invoke +BackTrace.install()+ (_e.g._, from the interactive prompt).
2986 : jhr 3992 To enable the coverage plugin, load the same library and invoke
2987 : jhr 4002 +Coverage.install()+.
2988 : jhr 3992 +
2989 :     Back-traces are generated automatically on uncaught exceptions and
2990 : jhr 4002 when the code in question explicitly invokes +BackTrace.trigger()+.
2991 : jhr 3992 +
2992 :     Coverage (and execution frequency-) information must be queried
2993 : jhr 4002 explicitly by calling +Coverage.not_covered+ and +Coverage.hot_spots+.
2994 : jhr 3992 +
2995 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
2996 : jhr 3992
2997 :     //--------------------------------------------------------------------
2998 :     [2004/10/14]::
2999 :     +
3000 : jhr 4002 Snapshot of a significant overhaul of how the +trace/debug/profile+ support
3001 :     is hooked into the system (specifically: +Core+ and +SMLofNJ.Internals+).
3002 : jhr 3992 +
3003 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3004 : jhr 3992
3005 :     //--------------------------------------------------------------------
3006 :     [2004/10/13]::
3007 :     +
3008 :     Some rationalization of names:
3009 :     +
3010 :     structure BTrace -> structure TDPInstrument
3011 :     etc.
3012 :     +
3013 :     This is is preparation of using the original back-trace
3014 :     instrumentation for other purposes. "TDP" stands for
3015 :     Trace/Debug/Profile.
3016 :     +
3017 :     The control flag controlling whether instrumentation is on or off is now
3018 :     registered under a different name, so instead of running sml as
3019 :     +
3020 :     sml -Cinstrument.btrace-mode=true
3021 :     +
3022 :     one has to say
3023 :     +
3024 :     sml -Ctdp.instrument=true
3025 :     +
3026 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3027 : jhr 3992
3028 :     //--------------------------------------------------------------------
3029 :     [2004/10/11]::
3030 :     +
3031 :     Made some minor modifications to elabcore.sml to have source regions
3032 :     be propagated more tightly -- resulting in better (_i.e._, smaller)
3033 :     regions being reported in error- and debug messages.
3034 :     +
3035 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3036 : jhr 3992
3037 :     //--------------------------------------------------------------------
3038 :     [2004/10/08]::
3039 :     +
3040 :     Fixed handling of keywords in .cm files: After seeing "is" the lexer
3041 :     treats subsequent occurrences of "group", "library", "source", "is",
3042 :     "*", and "-" as ordinary identifiers rather than keywords.
3043 :     +
3044 :     Most seriously, this fixes a problem with CM's "shell" tool. The tool
3045 :     is supposed to accept a tool argument called "source", but this did
3046 :     not work because of the clash with the keyword.
3047 :     +
3048 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3049 : jhr 3992
3050 :     //--------------------------------------------------------------------
3051 :     [2004/10/07]::
3052 :     +
3053 :     Assorted cleanup work:
3054 :     +
3055 :     - got rid of intstrmap in favor of using the library's
3056 :     hash table implementation
3057 :     - threw out most of the pathnames stuff, as it was not used anyway
3058 :     - simplified tokentable implementation
3059 :     - fixed some minor spelling errors
3060 :     +
3061 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3062 : jhr 3992
3063 :     //--------------------------------------------------------------------
3064 :     [2004/10/06]::
3065 :     +
3066 :     Cleaned up the absyn to reflect the invariant that HANDLE always
3067 :     carries a FNexp as part of the type definition. This eliminates some
3068 :     superfluous sanity checks at runtime down the road.
3069 :     +
3070 :     Some minor cleanup of the btrace code.
3071 :     +
3072 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3073 : jhr 3992
3074 :     //--------------------------------------------------------------------
3075 :     [2004/10/01]::
3076 :     +
3077 :     Added hack to make slave mode work in the presence of the version
3078 :     tool. (Still, since the master does two passes over the code for
3079 :     CMB.make, the release number gets bumped twice when slaves are
3080 :     attached. I don't know if this is worth fixing...)
3081 :     +
3082 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3083 : jhr 3992
3084 :     //--------------------------------------------------------------------
3085 :     [2004/09/30]::
3086 :     +
3087 :     * Moved the "version" magic into its own little library under
3088 :     src/system/smlnj/internal. This avoids expensive reconstruction of
3089 :     a stable src/compiler/core.cm.
3090 :     +
3091 :     * At the same time, structure CompilerVersion is now known as
3092 :     structure SMLNJVersion.
3093 :     +
3094 :     * Arranged for the version tool to NOT kick in when rebuilding the system
3095 :     (makeml -rebuild, fixpt). Otherwise one would never reach a fixpoint.
3096 :     Also, loading the versiontool does not work when rebuilding the system
3097 :     because CM is not properly initialized at that time.
3098 :     +
3099 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3100 : jhr 3992
3101 :     //--------------------------------------------------------------------
3102 :     [2004/09/29]::
3103 :     +
3104 :     Implemented some CM magic to have
3105 :     file src/compiler/TopLevel/main/version.sml
3106 :     generated automagically.
3107 :     The version is taken from two files: config/version and config/release.
3108 :     The first is expected to contain a two-part version number such as 110.49.
3109 :     The second should contain a single number, but it may be missing.
3110 :     +
3111 :     If the environment variable VERSIONTOOL_BUMP_RELEASE is defined at the
3112 :     time the version tool is loaded (which is the first time you say CMB.make),
3113 :     then the tool will increment the value stored in config/release every
3114 :     time CMB.make is invoked.
3115 :     +
3116 :     The binfile format is now insensitive to anything beyond the first
3117 :     two components of a version number, so bumping the release does not render
3118 :     binfiles incompatible. Auto-bumping can be used to keep track of versions
3119 :     during development without invalidating existing binfiles.
3120 :     +
3121 :     In any case, every CMB.make updates the date information in version.sml.
3122 :     (This is the date that is printed in the banner.)
3123 :     +
3124 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3125 : jhr 3992
3126 :     //--------------------------------------------------------------------
3127 :     [2004/09/28]::
3128 :     +
3129 :     Some cleanup of the controls code.
3130 :     +
3131 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3132 : jhr 3992
3133 :     //--------------------------------------------------------------------
3134 :     [2004/09/27]::
3135 :     +
3136 :     Added two pieces of functionality to the Controls interface:
3137 :     +
3138 : jhr 3995 [source,sml]
3139 :     ------------
3140 :     val save'restore: 'a control -> unit -> unit
3141 :     ------------
3142 : jhr 3992 +
3143 : jhr 3995 grabs the current value of the control in stage 1 and restores it
3144 :     in stage 2.
3145 : jhr 3992 +
3146 : jhr 3995 [source,sml]
3147 :     ------------
3148 :     val set' : 'a control * 'a -> unit -> unit
3149 :     ------------
3150 : jhr 3992 +
3151 : jhr 3995 stores the given value into the control in stage 2 (_i.e._, delayed)
3152 :     but does all error checking in stage 1.
3153 :     (This is for string controls that need to do parse their argument --
3154 :     something that might fail. In some cases, notably in CM, one
3155 :     already knows the intended argument but wants to delay the actual
3156 :     assignment until a time when error recovery would be more difficult.)
3157 : jhr 3992 +
3158 : jhr 3995 Also changed the handling of controls in tool arguments to classes "+sml+" and
3159 :     "+lazysml+":
3160 : jhr 4002 +
3161 : jhr 3995 --
3162 :     - use +Controls.save'restore+ as a more robust way of restoring the
3163 : jhr 3992 old value (in particular: without having to re-parse the string)
3164 : jhr 3995 - use controls to handle the "+overload+" keyword in the init group
3165 : jhr 3992 (I believe this change actually fixes a long-standing obscure bug.)
3166 : jhr 3995 --
3167 : jhr 3992 +
3168 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3169 : jhr 3992
3170 :     //--------------------------------------------------------------------
3171 :     [2004/09/27]::
3172 :     +
3173 : jhr 3995 Added a new tool class called "+lazysml+" to CM's tool chest. The only
3174 :     difference to "+sml+" is that compilation is done with +Control.lazysml+
3175 :     set to true. A source of class "+lazysml+" is automatically recognized
3176 :     by a file name suffix of "+.lml+".
3177 : jhr 3992 +
3178 : jhr 3995 In addition to the above feature, the original class "+sml+" now also
3179 :     supports a tool argument "+lazy+" which has the same effect. As a
3180 : jhr 3992 result, the following three lines are equivalent:
3181 :     +
3182 : jhr 3995 ....................
3183 : jhr 3992 foo.sml : lazysml
3184 :     foo.sml : sml (lazy)
3185 :     foo.sml (lazy)
3186 : jhr 3995 ....................
3187 : jhr 3992 +
3188 :     The setting goes into effect both during parsing and during
3189 :     compilation. The original setting is restored right after parsing and
3190 :     after compilation, respectively.
3191 :     +
3192 :     In addition to all the above, there is also a general mechanism to set
3193 :     ANY of the "controls" that are available at the command line via
3194 : jhr 3995 "+-C...+" on a per-sml-file basis. The same rules that apply for "+lazy+"
3195 :     apply as well. (In fact, "+lazy+" is implemented as a special case of
3196 : jhr 3992 the general mechanism.)
3197 :     +
3198 : jhr 3995 The +.cm+ file syntax uses a new keyword tool argument called "+with+".
3199 : jhr 3992 There are several ways of indicating the desired settings:
3200 :     +
3201 : jhr 3995 ....................
3202 : jhr 3992 foo.sml (with:parser.quotations=true)
3203 :     foo.sml (with:(name:parser.quotations value:true))
3204 :     foo.sml (with:(name:name1 value:value1 name:name2 value:value2 ...))
3205 :     foo.sml (with:(name1=value1 name2=value2 ...))
3206 :     foo.sml (with:(name1=value1 name:name2 value:value2 name3=value3 ...))
3207 : jhr 3995 ....................
3208 : jhr 3992 +
3209 : jhr 3995 Another possible abbreviation is to leave out the +=v+ or +value:v+ part
3210 : jhr 3992 if the name refers to a boolean control (in which case the value is
3211 :     taken to be true). Thus, one could get lazy sml also by saying:
3212 :     +
3213 : jhr 3995 ....................
3214 : jhr 3992 foo.sml (with:parser.lazy-keyword=true)
3215 :     foo.sml (with:parser.lazy-keyword)
3216 :     foo.sml (with:(name:parser.lazy-keyword value:true))
3217 :     foo.sml (with:(name:parser.lazy-keyword))
3218 : jhr 3995 ....................
3219 : jhr 3992 +
3220 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3221 : jhr 3992
3222 :     //--------------------------------------------------------------------
3223 :     [2004/09/24]::
3224 :     +
3225 :     Turned message about "emiting long form of branch" off by default.
3226 :     Added a control flag to turn it back on when desired.
3227 :     +
3228 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3229 : jhr 3992
3230 :     //--------------------------------------------------------------------
3231 :     [2004/09/24]::
3232 :     +
3233 : jhr 4002 Applied patch for setting rounding modes under *Mac OS X*. Thanks to
3234 : jhr 3992 Melissa O'Neill for providing the code!
3235 :     +
3236 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3237 : jhr 3992
3238 :     //--------------------------------------------------------------------
3239 :     [2004/09/23]::
3240 :     +
3241 : jhr 4002 --
3242 :     . Changed definition of type +ControlRegistry.registry_tree+ to
3243 :     include control_info (_i.e._, the name of the controlling environment
3244 :     variable).
3245 : jhr 3992 +
3246 : jhr 4002 . Added command-line flags ++-e++ and ++-E++ to print the names of
3247 :     environment variables that can be used to control internal settings.
3248 :     (This uses the new API mentioned in 1.)
3249 :     --
3250 : jhr 3992 +
3251 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3252 : jhr 3992
3253 :     //====================================================================
3254 :     == Version 110.49; 2004/09/13
3255 :    
3256 :    
3257 :     //--------------------------------------------------------------------
3258 :     [2004/09/13]::
3259 :     +
3260 : jhr 4002 Put target "+mlrisc+" back into the default list.
3261 : jhr 3992 (There is no harm in having it, and some users have expressed their
3262 : jhr 4002 wish to have "+mlrisc+" included by default.)
3263 : jhr 3992 +
3264 : jhr 4002 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3265 : jhr 3992
3266 :     //--------------------------------------------------------------------
3267 :     [2004/09/13]::
3268 :     +
3269 :     Fixed the signal masking code to properly nest mask/unmask operations
3270 :     on a per-signal basis.
3271 :     +
3272 : jhr 3995 owner:[John Reppy,http://www.cs.uchicago.edu/~jhr]
3273 : jhr 3992
3274 :     //--------------------------------------------------------------------
3275 :     [2004/09/08]::
3276 :     +
3277 : jhr 4002 Bumped the heap magic number to +0x09082004+ to account for the changed
3278 :     layout of the ML frame under *Mac OS X*.
3279 : jhr 3992 +
3280 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3281 : jhr 3992
3282 :     //--------------------------------------------------------------------
3283 :     [2004/09/03]::
3284 :     +
3285 : jhr 4002 Added a patch to _arch-n-opsys to enable the Cygwin runtime.
3286 : jhr 3992 The Cygwin runtime is turned on by setting the environment
3287 :     variable SMLNJ_CYGWIN_RUNTIME to 1.
3288 :     +
3289 :     owner:[Allen Leung]
3290 :    
3291 :     //--------------------------------------------------------------------
3292 :     [2004/08/31]::
3293 :     +
3294 :     Added some exports to src/compiler/core.cm upon request by J. Joemann.
3295 :     +
3296 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3297 : jhr 3992
3298 :     //--------------------------------------------------------------------
3299 :     [2004/08/30]::
3300 :     +
3301 :     Upon request by Johannes Joemann:
3302 :     +
3303 : jhr 4002 --
3304 : jhr 3992 - improved ML code of installer to fall back to coping when renaming
3305 :     fails (_i.e._, when source and target are on different file systems);
3306 :     the code compiles but has yet to be tested in anger
3307 : jhr 4002 - removed +mlrisc+ from list of default targets (+config/targets+)
3308 :     --
3309 : jhr 3992 +
3310 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3311 : jhr 3992
3312 :     //--------------------------------------------------------------------
3313 :     [2004/08/27]::
3314 :     +
3315 : jhr 4002 Added +ptreql+ primop to structure +InlineT+ (upon request from Larry
3316 : jhr 3992 Paulson).
3317 :     +
3318 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3319 : jhr 3992
3320 :     //--------------------------------------------------------------------
3321 :     [2004/08/15]::
3322 :     +
3323 :     Another bug fix from Carl Hauser:
3324 :     +
3325 : jhr 4002 ....................
3326 : jhr 3992 diff /net/niflab/smlnj48/src/MLRISC/graphs/udgraph.sml udgraph.sml
3327 :     > 48c48
3328 :     > < | rmv((e as (k,_))::es,L) = rmv(es,if k = i then es else
3329 :     > e::L)
3330 :     > ---
3331 :     > > | rmv((e as (k,_))::es,L) = rmv(es,if k = i then L else e::L)
3332 : jhr 4002 ....................
3333 : jhr 3992 +
3334 : jhr 4002 Without this, any deletion of an edge in an undirected graph does severe
3335 :     violence to the graph.
3336 :     +
3337 : jhr 3992 owner:[Allen Leung]
3338 :    
3339 :     //--------------------------------------------------------------------
3340 :     [2004/08/10]::
3341 :     +
3342 : jhr 4002 The IBM/MacOS syntax switch on *PPC* was incorrectly swapped.
3343 : jhr 3992 +
3344 :     owner:[Allen Leung]
3345 :    
3346 :     //====================================================================
3347 :     == Version 110.48; 2004/08/10
3348 :    
3349 :    
3350 :     //--------------------------------------------------------------------
3351 :     [2004/08/09]::
3352 :     +
3353 :     Bug fix from Carl Hauser:
3354 :     +
3355 : jhr 4002 +single_source_shortest_paths+ in +dijkstra.sml+ was observed to get wrong
3356 :     answers (by comparing to +single_source_shortest_paths+ in +bellman-ford.sml+).
3357 : jhr 3992 +
3358 : jhr 4002 The problem is that following the expression +A.update(dist,s,Num.zero)+
3359 :     it is necessary to update the priority queue using +Q.decreaseWeight(Q,s)+.
3360 : jhr 3992 +
3361 :     owner:[Allen Leung]
3362 :    
3363 :     //--------------------------------------------------------------------
3364 :     [2004/08/06]::
3365 :     +
3366 :     Fiddled with handling of command-line options:
3367 :     +
3368 : jhr 4002 --
3369 :     * *sml* now quits after processing the command line
3370 :     if ++-H++, ++-S++, ++-h++<__n__>, or ++-s++<__n__> appears as the last
3371 : jhr 3992 command-line argument
3372 : jhr 4002 * a new option +-q+ terminates the session when encountered on
3373 : jhr 3992 the command line; subsequent arguments will be ignored
3374 :     * bug fixes: short (erroneous) arguments are no longer ignored
3375 :     completely
3376 : jhr 4002 --
3377 : jhr 3992 +
3378 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3379 : jhr 3992
3380 :     //--------------------------------------------------------------------
3381 :     [2004/08/04]::
3382 :     +
3383 : jhr 4002 --
3384 : jhr 3992 - Added minimal IBM assembly syntax support for PowerPC.
3385 :     +
3386 : jhr 4002 - Cygwin: manually changed the file +cygwin.def+. Some exported symbols have
3387 : jhr 3992 been altered in the runtime. We need an automatic way to keep the file
3388 :     in sync.
3389 : jhr 4002 --
3390 : jhr 3992 +
3391 :     owner:[Allen Leung]
3392 :    
3393 :     //====================================================================
3394 :     == Version 110.47; 2004/08/04
3395 :    
3396 :    
3397 :     //--------------------------------------------------------------------
3398 :     [2004/08/03]::
3399 :     +
3400 :     Added low-level support for choosing C calling conventions by
3401 :     twiddling the type of rawccall. (See
3402 : jhr 4002 +src/compiler/Semant/types/cproto.sml+ for details.)
3403 : jhr 3992 +
3404 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3405 : jhr 3992
3406 :     //--------------------------------------------------------------------
3407 :     [2004/08/02]::
3408 :     +
3409 : jhr 4002 Backed out of change to +win32-filesys.c+. The earlier patch to
3410 :     +get_file_time+ caused *CM* to produce files with the wrong time stamp.
3411 : jhr 3992 +
3412 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3413 : jhr 3992
3414 :     //--------------------------------------------------------------------
3415 :     [2004/08/02]::
3416 :     +
3417 : jhr 4002 Added *NLFFI* support for *Win32*, adapted from a patch provided by David
3418 : jhr 3992 Hansel. This is currently completely untested. Also, the issue
3419 :     concerning stdcall vs. ccall is still unresolved.
3420 :     +
3421 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3422 : jhr 3992
3423 :     //--------------------------------------------------------------------
3424 :     [2004/07/30]::
3425 :     +
3426 :     Gearing up towards 110.47...
3427 :     +
3428 : jhr 4002 --
3429 :     * various minor bugfixes to ml-nlffigen
3430 : jhr 3992 +
3431 : jhr 4002 * a beginning of a manual for nlffi
3432 :     +
3433 :     * eliminated 'export name=value' in config/install.sh as this does
3434 : jhr 3992 not work with certain versions of /bin/sh
3435 :     (Thanks to David King at Motorola for catching this.)
3436 :     +
3437 : jhr 4002 * several bugfixes provided or suggested by David Hansel at Reactive Systems:
3438 :     - added a test for +tm==NULL+ to +gmtime.c+ and +localtime.c+
3439 :     - applied patch for incorrect +GetFileTime+ under +win32+
3440 :     - +toSeconds+ -> +toMilliseconds+ in +Win32/win32-process.sml+
3441 :     --
3442 : jhr 3992 +
3443 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3444 : jhr 3992
3445 :     //--------------------------------------------------------------------
3446 :     [2004/07/21]::
3447 :     +
3448 : jhr 4002 --
3449 :     - Fixed minor issue in *ml-nlffigen*: Now generate structure +T_foo+
3450 :     for a typedef to an incomplete type, but leave out the "+typ+" member.
3451 : jhr 3992 (This is just for consistency.)
3452 :     - Started to produce what is supposed to become better (_i.e._, comprehensive)
3453 : jhr 4002 documentation of what *ml-nlffigen* does and produces.
3454 :     --
3455 : jhr 3992 +
3456 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3457 : jhr 3992
3458 :     //--------------------------------------------------------------------
3459 :     [2004/07/14]::
3460 :     +
3461 : jhr 4002 Added +C_UNION+ to +c-calls/c-types.sml+ and updated the machinery
3462 :     (*ml-nlffigen*, +cproto.sml+) that conveys *C* function interface
3463 : jhr 3992 information to the code generator.
3464 :     +
3465 :     However, the actual architecture-specific implementation of function
3466 : jhr 4002 arguments and results that are *C* unions is still not implemented.
3467 : jhr 3992 +
3468 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3469 : jhr 3992
3470 :     //--------------------------------------------------------------------
3471 :     [2004/07/14]::
3472 :     +
3473 : jhr 4002 Added these instructions to the PowerPC architecture:
3474 :     +LBZU+(+X+), +LHZU+(+X+), +LWZU+(+X+),
3475 :     +STWU+(+X+), +STFDU+, +STFSU+,
3476 :     etc...
3477 : jhr 3992 +
3478 : jhr 4002 Note: I haven't added their instruction encoding into the description.
3479 : jhr 3992 +
3480 :     owner:[Allen Leung]
3481 :    
3482 :     //--------------------------------------------------------------------
3483 :     [2004/07/13]::
3484 :     +
3485 : jhr 4002 Added the two instructions +LWARX+ and +STWCX+ to the PowerPC
3486 : jhr 3992 instruction set.
3487 :     +
3488 : jhr 4002 A (untested) rewrite of +loop-structure.sml+. The old version
3489 : jhr 3992 is completely broken.
3490 :     +
3491 :     owner:[Allen Leung]
3492 :    
3493 :     //--------------------------------------------------------------------
3494 :     [2004/07/13]::
3495 :     +
3496 : jhr 4002 --
3497 :     - use +paramAlloc+ to report c-calls with too many arguments
3498 : jhr 3992 (for PPC version where parameter area is pre-allocated)
3499 : jhr 4002 - added +ccall_maxargspace+ to machspec (to implement the above)
3500 : jhr 3992 - made "make" commend in CM's "make" tool configurable
3501 :     - added option (default: on) for passing the name of the SML/NJ's "bin"
3502 :     directory to "make"; the call looks like this:
3503 :     +
3504 : jhr 4002 [source,sh]
3505 :     -----------
3506 :     make <options> SMLNJ_BINDIR=<dir> <target>
3507 :     -----------
3508 : jhr 3992 +
3509 : jhr 4002 This can be used by the Makefile to, _e.g._, pick the "right" version
3510 :     of *ml-nlffigen*.
3511 : jhr 3992 - minor code tweaks
3512 : jhr 4002 --
3513 : jhr 3992 +
3514 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3515 : jhr 3992
3516 :     //====================================================================
3517 :     == Version 110.46.1; 2004/07/12
3518 :    
3519 :    
3520 :     //--------------------------------------------------------------------
3521 :     [2004/07/12]::
3522 :     +
3523 :     NLFFI under Mac OS X now working (sort of). This is largely untested,
3524 :     though.
3525 :     +
3526 : jhr 4002 .Note:
3527 :     --
3528 :     . You have to make a new, clean build of the runtime system.
3529 :     . There are new BOOTFILES, you have to use them!
3530 :     (Doing the bootstrap process yourself would be *very* painful!
3531 :     If you absolutely have to do it, build the system under
3532 :     a different architecture and then cross-compile.)
3533 :     --
3534 : jhr 3992 +
3535 :     Version bumped to 110.46.1 to account for runtime data format changes.
3536 :     +
3537 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3538 : jhr 3992
3539 :     //--------------------------------------------------------------------
3540 :     [2004/06/18]::
3541 :     +
3542 : jhr 4002 Changed the implementation of structure +Unix+ so that the same stream
3543 :     is returned every time one of the {++text++,++bin++}{++In++,++Out++}++streamOf++
3544 :     functions is invoked on the same proc. This is not what the spec currently
3545 : jhr 3992 says -- although IMO it arguably should. (See discussion below.)
3546 :     +
3547 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3548 : jhr 3992
3549 :     //====================================================================
3550 :     == Version 110.46; 2004/06/17
3551 :    
3552 :    
3553 :     //--------------------------------------------------------------------
3554 :     [2004/06/17]::
3555 :     +
3556 :     Changed the interface of structures Timer and Unix to match the most
3557 :     recent Basis spec.
3558 :     +
3559 :     In the case of Unix there still seems to be an open/weird issue:
3560 :     +
3561 :     The {text,bin}{In,Out}streamOf functions are supposed to create
3562 :     fresh streams whenever they are called -- as opposed to have them
3563 :     return the same stream every time. This design is supposed to
3564 :     prevent space leaks caused by proc values hanging on to streams.
3565 :     +
3566 :     The reap function, on the other hand, is supposed to close the
3567 :     streams. This cannot be done without having a handle on the
3568 :     stream in proc after all...
3569 :     +
3570 :     I took the liberty to implement the following stopgap solution:
3571 :     +
3572 :     The proc value hangs on to the most recently created stream(s).
3573 :     Reap closes those. If either or both of the two streams hadn't
3574 :     been created at all yet, then reap will close the corresponding
3575 :     file descriptors directly.
3576 :     +
3577 :     PS: I don't understand the original space leak argument anymore. If
3578 :     a proc hangs on to the imperative stream, then I/O operations on those
3579 :     will advance the state of the cached stream and avoid the space leak.
3580 :     +
3581 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3582 : jhr 3992
3583 :     //--------------------------------------------------------------------
3584 :     [2004/05/28]::
3585 :     +
3586 : jhr 4002 Added signature +PACK_REAL+ and exported functor +PrimIO+.
3587 : jhr 3992 +
3588 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3589 : jhr 3992
3590 :     //--------------------------------------------------------------------
3591 :     [2004/05/25]::
3592 :     +
3593 :     CM now ignores (but still accepts) the "owner" information in group
3594 :     descriptions. The owner of a group is its next enclosing
3595 :     library. Each group must have a unique owner. (There is a virtual
3596 :     "toplevel" library that owns groups which are not nested within a real
3597 :     library.) Previously, each group had to explicitly declare its owner,
3598 :     and CM would check that such a declaration is correct. The new scheme
3599 :     is to have CM check that for each group there is precisely one owning
3600 :     library.
3601 :     +
3602 :     The advantage of the new scheme is that the programmer no longer needs
3603 :     to maintain the somewhat annoying owner information. The downside is
3604 :     that CM cannot enforce the ownership rule across multiple runs of
3605 :     CM.make. Fortunately, enclosing the same group in two different
3606 :     libraries A and B which are not part of the same program does not
3607 :     cause real problems.
3608 :     +
3609 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3610 : jhr 3992
3611 :     //--------------------------------------------------------------------
3612 :     [2004/05/20]::
3613 :     +
3614 :     Made the win32 version work again. (Strangely, a misplaced comma had
3615 :     slipped into win32-process.c which prevented the runtime from being
3616 :     compiled correctly.)
3617 :     +
3618 :     Also, included a minor addition to ml-build.bat analogous to what was
3619 :     done in blume-20040519-ml-build.
3620 :     +
3621 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3622 : jhr 3992
3623 :     //--------------------------------------------------------------------
3624 :     [2004/05/19]::
3625 :     +
3626 :     Arranged for *ml-build* to clean up after itself a little bit better.
3627 :     The script generates a temporary SML source file and compiles it using
3628 :     CM, so CM generates metadata (GUID, SKEL, objectfile) for it. It now
3629 :     gets rid of those at the end, so they don't accumulate under .cm.
3630 :     +
3631 :     This required a minor change to install.sh because the name of the
3632 :     metadata directory (default: .cm) is actually configurable at
3633 :     installation time.
3634 :     +
3635 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3636 : jhr 3992
3637 :     //--------------------------------------------------------------------
3638 :     [2004/05/18]::
3639 :     +
3640 :     Added Posix.IO.mk{Bin,Text}{Reader,Writer} by lifting their respective
3641 :     implementations from internal modules PosixBinPrimIO and PosixTextPrimIO.
3642 :     +
3643 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3644 : jhr 3992
3645 :     //--------------------------------------------------------------------
3646 :     [2004/05/11]::
3647 :     +
3648 :     Added previously missing support for many socket-related functions
3649 :     under win32. Thanks to David Hansel <hansel@reactive-systems.com>
3650 :     for the voluminous patch!
3651 :     +
3652 :     (I have not tested this patch under win32 yet.)
3653 :     +
3654 :     Here is David's e-mail:
3655 :     +
3656 :     Hi,
3657 :     +
3658 :     Attached to this email you find a diff against sml/nj 110.45
3659 :     that will enable socket support under Windows.
3660 :     +
3661 :     To apply the patch (using unix or cygwin)
3662 :     1) gunzip runtime.diff.gz
3663 :     2) "cd" into "src/runtime" in the source tree of a fresh
3664 :     110.45 installation.
3665 :     3) patch -p 1 < [your/path/to]runtime.diff
3666 :     +
3667 :     The code compiles fine but has NOT yet been extensively tested.
3668 :     I only ran a few tests for basic socket client functionality
3669 :     (which worked fine). Especially the functions that use ioctl
3670 :     are not tested at all and might not work (see below).
3671 :     +
3672 :     I implemented this since we want to move to a newer version of sml/nj
3673 :     but need socket support in order to use it. This is the first time I
3674 :     even had a look at the sml/nj source, so please review my changes
3675 :     before making this part of the distribution! Here are a few issues
3676 :     that I think might be better for someone to solve who is more
3677 :     familiar with the sml/nj source (and socket programming):
3678 :     +
3679 :     - getnetbyaddr.c and getnetbyname.c will raise a "not implemented"
3680 :     exception since I could not figure out what the windows equivalent
3681 :     of these functions is
3682 :     +
3683 :     - In sockets-osdep.h there are a some #include statements that are
3684 :     only used in a few files that include sockets-osdep.h
3685 :     +
3686 :     - In smlnj-sock-lib.c, function init_fn() calls WSAStartup() but
3687 :     does not process its return value since I don't know how to
3688 :     report an error upwards.
3689 :     +
3690 :     - It would probably be good to have a call to WSACleanup() when
3691 :     the library is unloaded (if there is such a possibility).
3692 :     Otherwise I think Windows will take care of this automatically
3693 :     when the process finishes.
3694 :     +
3695 :     - I used ioctlsocket() as a replacement for ioctl() but I have
3696 :     no idea if that is actually the proper replacement on Windows.
3697 :     +
3698 :     - All these issues are marked in the code by "FIXME" comments.
3699 :     +
3700 :     We use sml/nj extensively in our products and are quite happy
3701 :     with it. I hope this contribution will help you.
3702 :     +
3703 :     Keep up the good work!
3704 :     +
3705 :     David
3706 :     +
3707 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3708 : jhr 3992
3709 :     //--------------------------------------------------------------------
3710 :     [2004/05/11]::
3711 :     +
3712 :     Fixed two bugs in installml script. (Thanks to Vesa A. Norrman for
3713 :     the patch.)
3714 :     +
3715 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3716 : jhr 3992
3717 :     //--------------------------------------------------------------------
3718 :     [2004/05/11]::
3719 :     +
3720 :     Added support for *nlffi* under netbsd. (Thanks to Vesa A. Norrman for
3721 :     the patch.)
3722 :     +
3723 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3724 : jhr 3992
3725 :     //--------------------------------------------------------------------
3726 :     [2004/05/11]::
3727 :     +
3728 :     As per request by Adam Chlipala <adam@hcoop.net>, extended various
3729 :     export lists in compiler-related .cm-files.
3730 :     +
3731 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3732 : jhr 3992
3733 :     //--------------------------------------------------------------------
3734 :     [2004/05/11]::
3735 :     +
3736 :     The installer now honors the "src-smlnj" target again, although its meaning
3737 :     has changed from "all sources required for the compiler" to "all sources
3738 :     the installer knows about". In other words, if you enable "src-smlnj"
3739 :     in the "targets" file, then the installer will pull in sources for
3740 :     everything. (Notice that this refers to source code only. Compiled
3741 :     code is still only installed for modules that were requested explicitly
3742 :     or which are required for other modules that were requested explicitly.)
3743 :     +
3744 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3745 : jhr 3992
3746 :     //--------------------------------------------------------------------
3747 :     [2004/04/23]::
3748 :     +
3749 :     Fixed IEEEReal.scan (and .fromString) so that if there is an overflow
3750 :     in the exponent calculation we get INF or ZERO (depending on the mantissa
3751 :     and the sign of the exponent).
3752 :     +
3753 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3754 : jhr 3992
3755 :     //--------------------------------------------------------------------
3756 :     [2004/04/23]::
3757 :     +
3758 :     The *ml-build* script now terminates with a non-0 status when something
3759 :     goes wrong.
3760 :     +
3761 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3762 : jhr 3992
3763 :     //--------------------------------------------------------------------
3764 :     [2004/04/22]::
3765 :     +
3766 :     Made exception Option to be the same as exception Option.Option
3767 :     (as it should be).
3768 :     +
3769 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3770 : jhr 3992
3771 :     //--------------------------------------------------------------------
3772 :     [2004/03/19]::
3773 :     +
3774 :     Fixed the runtime so that ml-nlffi-lib runs on the cygwin version
3775 :     of SML/NJ. The problem is that
3776 :     +
3777 :     lib = dlopen(NULL, ...)
3778 :     f = dlsym(lib, "malloc");
3779 :     +
3780 :     does not work on Windows unless we explicitly export symbols
3781 :     such as 'malloc' during linking. We fixed this by explicitly
3782 :     exporting the required symbols with the magic gcc incantation:
3783 :     +
3784 :     -Wl,--export-all cygwin.def
3785 :     +
3786 :     where cygwin.def is a file containing all the symbols that
3787 :     we wish to export.
3788 :     +
3789 :     I suspect this is a Windows problem and we'll have to
3790 :     do the same (somehow with windows compilers) when
3791 :     we build the native win32 version with the system
3792 :     calls LoadLibrary/GetProcAddress.
3793 :     +
3794 :     owner:[Allen Leung]
3795 :    
3796 :     //--------------------------------------------------------------------
3797 :     [2004/03/04]::
3798 :     +
3799 :     Fixed problem with IntInf.fmt (sign would show up on the right instead
3800 :     of on the left for BIN, OCT, and HEX).
3801 :     +
3802 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3803 : jhr 3992
3804 :     //--------------------------------------------------------------------
3805 :     [2004/03/04]::
3806 :     +
3807 :     Fixed problem with installer script (unix only) where bin/ml-yacc and
3808 :     friends pointed (via symlinks) to absolute locations instead of just
3809 :     .run-sml. This was reported by Vesa A Norrman.
3810 :     +
3811 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3812 : jhr 3992
3813 :     //====================================================================
3814 :     == Version 110.45; 2004/02/13
3815 :    
3816 :    
3817 :     //--------------------------------------------------------------------
3818 :     [2004/01/26]::
3819 :     +
3820 :     Improved handling of exceptions at the interactive toplevel.
3821 :     +
3822 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3823 : jhr 3992
3824 :     //--------------------------------------------------------------------
3825 :     [2004/01/26]::
3826 :     +
3827 :     Type of top-level "app" corrected.
3828 :     Added code for setting vp_limitPtrMask to *Win32*-specific runtime.
3829 :     +
3830 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3831 : jhr 3992
3832 :     //--------------------------------------------------------------------
3833 :     [2003/11/18]::
3834 :     +
3835 :     - changed Timer interface to what might become the spec
3836 :     - POSIX_FLAGS -> BIT_FLAGS according to spec
3837 :     - some other minor discrepancies wrt. spec eliminated
3838 :     +
3839 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3840 : jhr 3992
3841 :     //====================================================================
3842 :     == Version 110.44; 2003/11/06
3843 :    
3844 :    
3845 :     //--------------------------------------------------------------------
3846 :     [2003/11/04]::
3847 :     +
3848 :     Eliminated the "dont_move_libraries" directive in config/targets.
3849 :     (The mechanism was broken and could not be fixed easily. Moreover,
3850 :     there does not seem to be any reason not to move all libraries into
3851 :     lib during installation. I originally implemented this directive as a
3852 :     backward-compatibility feature when I first introduced the new CM.
3853 :     Now that things have been stable for a long time and going back to the
3854 :     old CM is not an option, there is no reason to keep it around.)
3855 :     +
3856 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3857 : jhr 3992
3858 :     //--------------------------------------------------------------------
3859 :     [2003/11/03]::
3860 :     +
3861 :     Made installer honor INSTALLDIR variable again. (Thanks to Chris
3862 :     Richards for pointing out the problem and providing the solution.)
3863 :     +
3864 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3865 : jhr 3992
3866 :     //--------------------------------------------------------------------
3867 :     [2003/10/01]::
3868 :     +
3869 :     MLRISC bug fix from Lal.
3870 :     +
3871 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3872 : jhr 3992
3873 :     //--------------------------------------------------------------------
3874 :     [2003/09/30]::
3875 :     +
3876 :     1. Added openVector, nullRd, and nullWr to PRIM_IO.
3877 :     2. Improved .bat files (for *Win32* port) to make things work under Win95.
3878 :     (thanks to Aaron S. Hawley for this one)
3879 :     +
3880 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3881 : jhr 3992
3882 :     //--------------------------------------------------------------------
3883 :     [2003/09/26]::
3884 :     +
3885 :     Added missing wrapper for privilege "primitive" in $smlnj/viscomp/core.cm.
3886 :     +
3887 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3888 : jhr 3992
3889 :     //====================================================================
3890 :     == Version 110.43.3; 2003/09/26
3891 :    
3892 :    
3893 :     //--------------------------------------------------------------------
3894 :     [2003/09/26]::
3895 :     +
3896 :     I modified the read-eval-print loop so that the autoloader gets
3897 :     invoked whenever the prettyprinter tries to look up a symbol that
3898 :     is not currently defined in the toplevel environment but which
3899 :     appears in CM's autoload registry. As a result, we see far fewer of
3900 :     those ?.Foo.Bar.xxx names in the prettyprinter's output.
3901 :     +
3902 :     In addition to this I tried to clean up some pieces of the Basis
3903 :     implementation (_e.g._, Socket, Word8Array) in order to prevent other
3904 :     instances of these ?.Foo.Bar.xxx names from being printed.
3905 :     +
3906 :     The mechanism that picks names for types still needs some work, though.
3907 :     (Right now it seems that if there is a type A.t which is defined to
3908 :     be B.u, but B is unavailable at toplevel, then A.t gets printed as
3909 :     "?.B.u" although the perhaps more sensible solution would be to use
3910 :     "A.t" in this case. In other words, the prettyprinter should follow
3911 :     a chain of DEFtycs not farther than there are corresponding toplevel
3912 :     names in the current environment.)
3913 :     +
3914 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3915 : jhr 3992
3916 :     //--------------------------------------------------------------------
3917 :     [2003/09/24]::
3918 :     +
3919 :     Another installer tweak: All the ML code for the installer is now
3920 :     compiled during CMB.make and put into a little library called
3921 :     $smlnj/installer.cm. The installation then simply invokes
3922 :     +
3923 :     ....................
3924 :     sml -m $smlnj/installer.cm
3925 :     ....................
3926 :     +
3927 :     and everything happens automagically.
3928 :     +
3929 :     Win32: ML code senses value of environment variable +SMLNJ_HOME+.
3930 :     Unix: ML code senses values of environment variables +ROOT+, +CONFIGDIR+,
3931 :     and +BINDIR+.
3932 :     +
3933 :     The new scheme guarantees that the ML code responsible for the installation
3934 :     is in sync with the APIs of the main system. Also, the installer is
3935 :     somewhat faster because the installer script is precompiled.
3936 :     +
3937 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3938 : jhr 3992
3939 :     //--------------------------------------------------------------------
3940 :     [2003/09/24]::
3941 :     +
3942 :     Added a signature SYNCHRONOUS_SOCKET to basis.cm. This is like SOCKET
3943 :     but excludes all non-blocking operations. Defined SOCKET (in Basis)
3944 :     and CML_SOCKET in terms of SYNCHRONOUS_SOCKET. Removed superfluous
3945 :     implementations of non-blocking operations from CML's Socket
3946 :     structure.
3947 :     +
3948 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3949 : jhr 3992
3950 :     //--------------------------------------------------------------------
3951 :     [2003/09/24]::
3952 :     +
3953 :     1. Fixed SOCKET API and implementation to match Basis spec.
3954 :     This required changing the internal representation of sockets to one
3955 :     that remembers (for each socket file descriptor) whether it is currently
3956 :     blocking or non-blocking. This state is maintained lazily (_i.e._, a system
3957 :     call is made only if the state actually needs to change).
3958 :     +
3959 :     2. OS-specific details of sockets were moved into separate files, thus
3960 :     making it possible to unify the bulk of the socket implementations
3961 :     between Unix and Win32.
3962 :     +
3963 :     3. CML's socket API changed accordingly.
3964 :     (Note that we need to remove non-blocking functions from this API
3965 :     since they are redundant in the case of CML!)
3966 :     +
3967 :     4. CML's socket implementation now makes use of non-blocking functions
3968 :     provided by Basis, thus removing all OS-dependent code from this part
3969 :     of CML.
3970 :     +
3971 :     5. Changed Real64.precision from 52 to 53. Minor cleanup in Real64 code.
3972 :     +
3973 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3974 : jhr 3992
3975 :     //====================================================================
3976 :     == Version 110.43.2; 2003/09/22
3977 :    
3978 :    
3979 :     //--------------------------------------------------------------------
3980 :     [2003/09/22]::
3981 :     +
3982 :     Made a new interim version and bootfiles for developer's bootstrapping
3983 :     convenience.
3984 :     +
3985 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3986 : jhr 3992
3987 :     //--------------------------------------------------------------------
3988 :     [2003/09/19]::
3989 :     +
3990 :     1. new-install.sh -> install.sh
3991 :     2. changed default CM "metadata" directory name to ".cm" (instead of "CM")
3992 :     3. tweaked installer so that another name instead of .cm can be chosen
3993 :     at install time (by setting the CM_DIR_ARC environment variable
3994 :     during installation); once installation is complete, the name is
3995 :     fixed
3996 :     +
3997 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
3998 : jhr 3992
3999 :     //====================================================================
4000 :     == Version 110.43.1; 2003/09/18
4001 :    
4002 :    
4003 :     //--------------------------------------------------------------------
4004 :     [2003/09/18]::
4005 :     +
4006 :     Made a new interim version and bootfiles for developer's bootstrapping
4007 :     convenience.
4008 :     +
4009 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4010 : jhr 3992
4011 :     //--------------------------------------------------------------------
4012 :     [2003/09/18]::
4013 :     +
4014 :     1. Exported fractionsPerSecond etc. from TimeImp (but not from Time as
4015 :     this seems to be controversial at the moment) and used those in
4016 :     Posix.ProcEnv.times.
4017 :     +
4018 :     2. Added Time.{from,to}Nanoseconds to Time.
4019 :     +
4020 :     3. Improved Real.{from,to}LargeInt by avoiding needless calculations.
4021 :     For example, fromLargeInt never needs to look at more than 3 "big
4022 :     digits" to get its 53 bits of precision.
4023 :     +
4024 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4025 : jhr 3992
4026 :     //--------------------------------------------------------------------
4027 :     [2003/09/17]::
4028 :     +
4029 :     Added an entry to the primitive environment
4030 :     (compiler/Semant/statenv/prim.sml) for int32->real64 conversion and
4031 :     added code to compiler/CodeGen/main/mlriscGen.sml to implement it.
4032 :     +
4033 :     Removed some of the "magic" constants in real64.sml and replaced them
4034 :     with code that generates these values from their corresponding
4035 :     integer counterparts.
4036 :     +
4037 :     Made all(?) the slice-related changes to the Basis and made everything
4038 :     compile again...
4039 :     +
4040 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4041 : jhr 3992
4042 :     //--------------------------------------------------------------------
4043 :     [2003/09/15]::
4044 :     +
4045 :     Fixed bug in Real.fromLargeInt.
4046 :     +
4047 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4048 : jhr 3992
4049 :     //--------------------------------------------------------------------
4050 :     [2003/09/13]::
4051 :     +
4052 :     Minor bugfix in config/libinstall (set anchor with path to
4053 :     standalone tool after installing it, otherwise libraries that
4054 :     need *ml-lex* or *ml-yacc* won't compile the first time the installer
4055 :     runs).
4056 :     +
4057 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4058 : jhr 3992
4059 :     //--------------------------------------------------------------------
4060 :     [2003/09/12]::
4061 :     +
4062 :     - fixed bug in Real.toLargeInt
4063 :     - fixed bug in Posix.ProcEnv.times
4064 :     - changed inputLine functions to return an option
4065 :     - minor installer improvements / bugfixes
4066 :     - changed default @SMLalloc parameter for x86/celeron to 64k
4067 :     +
4068 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4069 : jhr 3992
4070 :     //====================================================================
4071 :     == Version 110.43; 2003/09/09
4072 :    
4073 :    
4074 :     //--------------------------------------------------------------------
4075 :     [2003/09/09]::
4076 :     +
4077 :     Rewrote large parts of config/install.sh in SML (config/libinstall.sml).
4078 :     Modified config/install.bat to take advantage of it. Also modified
4079 :     config/install.sh (and called it config/new-install.sh) to take advantage
4080 :     of it on Unix systems. (The SML code is (supposed to be) platform-
4081 :     independent.)
4082 :     +
4083 :     The installer can now install everything under Win32
4084 :     as well as under *nix as long as it compiles.
4085 :     +
4086 :     Other changes:
4087 :     +
4088 :     - made CML compile again under Win32
4089 :     - made eXene compile under Win32 (by providing a fake structure UnixSock
4090 :     and by using OS.Process.getEnv instead of Posix.ProcEnv.getenv)
4091 :     - fixed a bug in nowhere: it assumed that type OS.Process.status is the
4092 :     same as type int; under Win32 it isn't
4093 :     - fixed some slice-related problems in the win32-specific parts of CML
4094 :     - added a functor argument "sameVol" to os-path-fn.sml in the Basis
4095 :     (under Win32, the volume name is case-insensitive, and the
4096 :     OS.Path code compares volume names for equality)
4097 :     +
4098 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4099 : jhr 3992
4100 :     //--------------------------------------------------------------------
4101 :     [2003/09/08]::
4102 :     +
4103 :     Made Win32 version of OS.FileSys.fullPath return current directory
4104 :     when given an empty string. This is what the spec says, and incidentally,
4105 :     CM depends on it. (CM otherwise goes into an infinite loop in certain
4106 :     cases when presented with the name of a non-existing .cm file.)
4107 :     +
4108 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4109 : jhr 3992
4110 :     //--------------------------------------------------------------------
4111 :     [2003/09/04]::
4112 :     +
4113 :     1. Changed interface to vectors and arrays in Basis to match
4114 :     (draft) Basis spec.
4115 :     2. Added signatures and implementations of slices according to
4116 :     Basis spec.
4117 :     3. Edited source code throughout the system to make it compile again
4118 :     under 1. and 2. (In some cases code had to be added to have it
4119 :     match the new signatures.)
4120 :     4. MLRISC should be backward-compatible: the copies of the originals
4121 :     of files that needed to change under 3. were retained, the .cm files
4122 :     check the compiler version number and use old versions when
4123 :     appropriate.
4124 :     5. Changed type of OS.FileSys.readDir and Posix.FileSys.readdir to
4125 :     dirstream -> string option (in accordance with Basis spec).
4126 :     6. When generating code that counts lines, *ml-lex* used function
4127 :     CharVector.foldli, taking advantage of its old interface.
4128 :     This has been replaced with the corresponding code from
4129 :     CharVectorSlice. (html-lex must be re-lexed!)
4130 :     7. BitArray in smlnj-lib/Util has been extended/modified to match the
4131 :     new MONO_ARRAY signature. (Do we need BitArraySlice?)
4132 :     8. Removed temporary additions (fromInternal, toInternal) from the
4133 :     (now obsolete) IntInf in smlnj-lib/Util.
4134 :     9. Cleaned up structure Byte.
4135 :     10. Added localOffset, scan, and fromString to Date (according to spec).
4136 :     Cleaned/corrected implementation of Date.
4137 :     (Still need to check for correctness; implement better canonicalizeDate.)
4138 :     11. Added "scan" to signature IEEE_REAL.
4139 :     12. Some improvements to IntInf [in particular: efficiency-hack for
4140 :     mod and rem when second operand is 2 (for parity checks).]
4141 :     13. Changed representation of type Time.time, using a single IntInf.int
4142 :     value counting microseconds. This considerably simplified the
4143 :     implementation of structure Time. We now support negative time
4144 :     values; scan and fromString handle signs.
4145 :     14. Functor PrimIO now takes two additional arguments (VectorSlice and
4146 :     ArraySlice).
4147 :     +
4148 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4149 : jhr 3992
4150 :     //--------------------------------------------------------------------
4151 :     [2003/08/28]::
4152 :     +
4153 :     This is a major update which comes with a version number bump
4154 :     (110.42.99 -- yes, we are really close to 110.43 :-), NEW BOOTFILES,
4155 : jhr 4101 and an implementation of +IntInf+ in the Basis.
4156 :    
4157 : jhr 3992 There are a fairly large number of related changes and updates throughout
4158 :     the system:
4159 :     +
4160 :     Basis:
4161 :     - Implemented IntInf.
4162 :     - Made LargeInt a projection of IntInf (by filtering through INTEGER).
4163 :     - Added some missing Real64 operations, most notably Real.toLargeInt.
4164 :     - Added FixedInt as a synonym for Int32.
4165 :     +
4166 :     compiler:
4167 :     * Added support for a built-in intinf type.
4168 : jhr 4101 --
4169 : jhr 3992 - literals
4170 :     - pattern matching
4171 : jhr 4101 - conversion shortcuts (+Int32.fromLarge o Int.toLarge+ etc.)
4172 : jhr 3992 - overloading on literals and operations
4173 : jhr 4101 --
4174 : jhr 3992 This required adding a primitive type intinf, some additional
4175 :     primops, and implementations for several non-trivial intinf
4176 :     operations in Core. (The intinf type is completely abstract
4177 :     to the compiler; all operations get delegated back to the Core.)
4178 :     +
4179 :     * Intinf equality is handled by polyequal. However, the compiler
4180 :     does not print its usual warning in this case (since polyequal
4181 :     is the right thing to do there).
4182 :     +
4183 : jhr 4101 * Improved the organization of structure +InlineT+.
4184 : jhr 3992 +
4185 :     * A word about conversion primops:
4186 :     If conversions involving intinf do not cancel out during
4187 :     CPS contract, then the compiler must insert calls to Core functions.
4188 :     Since all core access must be resolved already during the FLINT
4189 :     translate phase, it would be too late a the time of CPS contract
4190 :     to add new Core calls. For this reason, conversion primops
4191 :     for intinf carry two arguments: 1. the numeric argument that
4192 :     they are supposed to convert, and 2. the Core function that
4193 :     can help with this conversion if necessary. If CPS contract
4194 :     eliminates a primop, then the associated Core function becomes
4195 :     dead and goes away. Intinf conversion primops that do not get
4196 :     eliminated by CPS contract get rewritten into calls of their
4197 :     core functions by a separate, new phase.
4198 :     +
4199 :     interactive system:
4200 :     - Control.Print.intinfDepth controls max length of intinf constants
4201 :     being printed. (Analogous to Control.Print.stringDepth.)
4202 :     - Cleanup in printutil and pputil: got rid of unused stuff and
4203 :     duplicates; replaced some of the code with code that makes better
4204 :     use of library functionality.
4205 :     +
4206 :     CM:
4207 :     Bugfix: parse-errors in init group (system/smlnj/init/init.cmi)
4208 :     are no longer silent.
4209 :     +
4210 :     CKIT:
4211 :     Fixed mismatched uses of Int32 and LargeInt. I always decided
4212 :     in favor of LargeInt -- which is now the same as IntInf.
4213 :     CKIT-knowledgable people should check whether this is what's
4214 :     intended and otherwise change things back to using Int32 or
4215 :     FixedInt.
4216 :     +
4217 :     Throughout the code:
4218 :     Started using IntInf.int literals and built-in operations
4219 :     (_e.g._, comparison with 0) where this seems appropriate.
4220 :     +
4221 :     +
4222 : jhr 3995 owner:[Matthias Blume,http://www.tti-c.org/blume/]
4223 : jhr 3992
4224 :     //--------------------------------------------------------------------
4225 :     [2003/08/13]::
4226 :     +
4227 :     Merging changes from the mcz-branch development branch into trunk.
4228 :     These changes involve replacement of the emulated old prettyprinter
4229 :     interface with direct use of the SML/NJ Lib PP library, and fixing
4230 :     of a couple of bugs (895, 1186) relating to error messages. A new
4231 :     prettyprinter for ast datatypes (Elaborator/print/ppast.{sig,sml})
4232 :     has been added.
4233 :     +
4234 :     owner:[Dave MacQueen]
4235 :    
4236 :     //====================================================================
4237 :     == Version 110.42.9; 2003/08/11
4238 :    
4239 :    
4240 :     //--------------------------------------------------------------------
4241 :     [2003/08/11]::
4242 :     +
4243 :     This patch restores SML/NJ's ability to run under win32. There are a
4244 :     number of changes, including fixes for several bugs that had gone
4245 :     unnoticed until now:
4246 :     +
4247 : jhr 4101 --
4248 :     * uname "CYGWIN_NT*" is recognized as win32 (This is relevant only when
4249 :     trying to run the win32 version from within cygwin.)
4250 :    
4251 :     * There are a number of simple .bat scripts that substitute for their
4252 :     corresponding Unix shell-scripts. (See below.)
4253 :    
4254 :     * The internals of *ml-build* have been modified slightly. The main
4255 :     difference is that instead of calling ".link-sml" (or link-sml.bat)
4256 :     using +OS.Process.system+, the ML process delegates this task back
4257 :     to the script. Otherwise problems arise in mixed environments such
4258 :     as Cygwin where scripts look and work like Unix scripts, but
4259 :     where OS.Process.system cannot run them.
4260 :    
4261 :     * In CM, the srcpath pickler used native pathname syntax -- which
4262 :     is incorrect in the case of cross-compilation. The new pickle format
4263 :     is independent of platform-specific naming conventions.
4264 :    
4265 :     * Path configuration files (such as lib/pathconfig) can now choose
4266 :     between native and standard syntax. Placing a line of the form
4267 : jhr 3992 +
4268 :     standard!
4269 :     +
4270 : jhr 4101 into the file causes all subsequent paths to be interpreted using
4271 :     CM standard pathname syntax (= Unix conventions); a line
4272 : jhr 3992 +
4273 :     native!
4274 :     +
4275 : jhr 4101 switches back to native style. This was needed so that
4276 :     path config files can be written portably, see src/system/pathconfig.
4277 :    
4278 :     * Runtime system:
4279 : jhr 3992 +
4280 : jhr 4101 - ++win32-filesys.c++: +get_file_time+ and +set_file_time+ now
4281 :     access modification time, not creation time.
4282 :    
4283 :     - I/O code made aware of new array representation.
4284 :    
4285 :     - Bug fixes in +X86.prim.masm+.
4286 :    
4287 :     - +src/system/makeml+ made aware of win32. (For use under cygwin
4288 :     and other Unix-environments for windows.)
4289 :    
4290 :     - In Basis, fixed off-by-one error in win32-io.sml (function vecF)
4291 :     which caused BinIO.inputAll to fail consistently.
4292 :    
4293 :     * .bat scripts:
4294 : jhr 3992 +
4295 :     Windows .bat scripts assume that +SMLNJ_HOME+ is defined.
4296 :     +
4297 :     - sml.bat, ml-yacc.bat, ml-lex.bat: Driver scripts for standalone
4298 :     applications (sml, *ml-yacc*, *ml-lex*).
4299 :     - ml-build.bat: analogous to *ml-build*.
4300 :     - config\install.bat: Analogous to config/install.sh. This requires
4301 :     that +SMLNJ_HOME+ is set and that Microsoft Visual C is ready to use.
4302 :     (nmake etc. must be on the path, and vcvars32 must have been run.)
4303 :     Moreover, sources for *ml-lex* and *ml-yacc* need to exist under src,
4304 :     and the bootfile hierarchy must have been unpacked under
4305 :     sml.boot.x86-win32.
4306 :     The script is very primitive and does a poor job at error checking.
4307 :     It only installs the base system, *ml-lex*, and *ml-yacc*. No other
4308 :     libraries are being installed (_i.e._, you get only those that
4309 :     are part of the compiler.)
4310 :