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

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