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