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