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

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