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