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

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