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