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 3994 - (view) (download)

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