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