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

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